Last active
November 22, 2019 21:38
-
-
Save arnavs/4bb9173d219fc5660cab9b1b052fc0e7 to your computer and use it in GitHub Desktop.
Orphan Branch
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 docs | |
git rm -rf . | |
git commit --allow-empty -a -m "Initial Commit" | |
git push origin docs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit due to https://gist.github.com/seanbuscay/5877413.