Remove git branch locally and on remote
You've just merged a branch on git. You should delete that branch now:
# Usage: "$ burn <feature branch>"
burn() {
git branch -D "1ドル" # Delete branch locally
git push origin :"1ドル" # Delete branch from remote (GitHub)
}
Just throw this in your ~/.bashrc
, ~/.zshrc
, etc. and start burning your branches today!
If that feature branch was named dopeNewFeature
, you'd simple enter $ burn dopeNewFeature
when in master.
Written by Dawson Botsford
Related protips
2 Responses
Add your response
Add your response
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#