Skip to content

Instantly share code, notes, and snippets.

@danwoodward
danwoodward / git_create_orphan.sh
Created June 8, 2018 21:26 — forked from seanbuscay/git_create_orphan.sh
Create an orphan branch in a repo.
cd repository
git checkout --orphan orphan_name
git rm -rf .
rm '.gitignore'
echo "#Title of Readme" > README.md
git add README.md
git commit -a -m "Initial Commit"
git push origin orphan_name
# Name: smd_remote_file v0.43
# Type: Admin/Client side plugin
# Allows remote URL files to be handled from the Files tab
# Author: Stef Dawson
# URL: http://stefdawson.com/
# Recommended load order: 5
# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins