Advertisement
Guest User

Untitled

a guest
Oct 10th, 2015
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. # add this to your ~/.bash_profile or similar
  2.  
  3. # say you're on a branch `my-feature` and
  4. # you merge the PR for that branch on GitHub
  5. # you can now execute `gm` to run the following
  6.  
  7. gu () {
  8. branch=$(git symbolic-ref --short HEAD)
  9. git checkout master
  10. git pull
  11. git remote prune origin
  12. git branch -d $branch
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement