Skip to content

Instantly share code, notes, and snippets.

@Zenahr
Created May 26, 2020 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zenahr/ae40f199d29ae06a1fe1ac880b70f550 to your computer and use it in GitHub Desktop.
Save Zenahr/ae40f199d29ae06a1fe1ac880b70f550 to your computer and use it in GitHub Desktop.
Add empty branch to remote git repo
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