Skip to content

Instantly share code, notes, and snippets.

@jeffersongirao
Created December 1, 2011 16:08
Show Gist options
  • Save jeffersongirao/1417849 to your computer and use it in GitHub Desktop.
Save jeffersongirao/1417849 to your computer and use it in GitHub Desktop.
#!/bin/sh -x
git checkout master
git pull origin master
git checkout -b $1 master
#!/bin/sh -x
CURRENT=`git branch | grep "*" | awk '{print $2}'`
git checkout master
git merge --squash ${CURRENT} && git commit -a -v && git push origin master
#!/bin/sh -x
CURRENT=`git branch | grep "*" | awk '{print $2}'`
git checkout master
git pull origin master
git checkout ${CURRENT}
git rebase master ${CURRENT}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment