Skip to content

Instantly share code, notes, and snippets.

@kjell
Created January 29, 2009 19:15
Show Gist options
  • Save kjell/54683 to your computer and use it in GitHub Desktop.
Save kjell/54683 to your computer and use it in GitHub Desktop.
#!/opt/local/bin/fish
# Merge the current branch back into master.
function parse_git_branch; sh -c 'git branch --no-color 2> /dev/null' | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'; end
set branch_to_merge (parse_git_branch)
git co master
git merge $branch_to_merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment