Created
February 27, 2020 07:56
-
-
Save reilee/aa847711d48337fec7650157d8def849 to your computer and use it in GitHub Desktop.
Create empty branch in 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 --orphan EMPTY-BRANCH | |
git rm -rf . | |
git commit --allow-empty -m "root commit" | |
git push origin EMPTY-BRANCH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment