-
-
Save sdwfrost/d561f47b883f1b6ac8ad9f25caf7177c to your computer and use it in GitHub Desktop.
Create an orphan branch in a repo.
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment