Last active
February 4, 2020 10:53
-
-
Save eyalgo/d3f23f88b14ec312f40a to your computer and use it in GitHub Desktop.
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
# create a new branch out of current branch | |
git checkout -b <NEW_FEATURE_BRANCH_NAME> | |
# share the branch | |
git push -u origin <BRANCH_NAME> | |
# show all branches | |
git remote show origin | |
# Delete remotely | |
git push origin :<BRANCH_NAME> | |
# After removing remotely (in GitHub) | |
#verify which branches will be pruned | |
git remote prune origin --dry-run | |
# actual removing | |
git remote prune origin | |
# then delete locally | |
git branch -d <branch name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment