-
-
Save jmeridth/1281163 to your computer and use it in GitHub Desktop.
Revisions
-
jmeridth revised this gist
Oct 12, 2011 . 1 changed file with 10 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,15 @@ function rebasei { branch_name="$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1 /')" echo "Currently on $branch_name" git checkout master git pull origin master git checkout $branch_name git rebase -i master } function finishrebase { branch_name="$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1 /')" git checkout master git merge $branch_name git push origin master } -
jmarnold created this gist
Oct 12, 2011 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # the good-morning command (where upstream is your target remote -- or could be origin) function gm { branch_name="$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1 /')" echo "Currently on $branch_name" git checkout master git pull upstream master git checkout $branch_name git rebase master }