Created
May 21, 2018 09:26
-
-
Save ruanbekker/09d9782604d3ee8ae62f50f5c0f367a0 to your computer and use it in GitHub Desktop.
Create Empty Branch for Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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