Created
May 26, 2020 18:33
-
-
Save Zenahr/ae40f199d29ae06a1fe1ac880b70f550 to your computer and use it in GitHub Desktop.
Add empty branch to remote git 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
git push origin origin:refs/heads/new_feature_name | |
git fetch origin | |
git branch -r | |
git checkout --track -b new_feature_name origin/new_feature_name | |
alternative: | |
git checkout --orphan new-empty-branch | |
git rm -rf . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment