Skip to content

Instantly share code, notes, and snippets.

@kakkun61
Created June 28, 2012 06:35
Show Gist options
  • Save kakkun61/3009518 to your computer and use it in GitHub Desktop.
Save kakkun61/3009518 to your computer and use it in GitHub Desktop.
git merge master and ...
#! /bin/sh
b=`git branch | grep '*' | awk '{print $2}'`
git checkout master && git merge $b && git checkout $b
@kakkun61
Copy link
Author

kakkun61 commented Mar 3, 2014

@{-1} 使うと簡単に書ける。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment