Skip to content

Instantly share code, notes, and snippets.

@ruanbekker
Created May 21, 2018 09:26
Show Gist options
  • Save ruanbekker/09d9782604d3ee8ae62f50f5c0f367a0 to your computer and use it in GitHub Desktop.
Save ruanbekker/09d9782604d3ee8ae62f50f5c0f367a0 to your computer and use it in GitHub Desktop.
Create Empty Branch for Git
git checkout master
git checkout --orphan version
for x in `git ls-files`; do git rm --cached $x; done
for x in `ls`; do rm -rf $x; done
touch README.md
git add README.md
git commit -m "initial commit for empty version branch"
git push origin version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment