5月 24 2009

git stash; git svn dcommit; git stash apply

Published by HoLY under tech

svn 経由で git 使ってて、 ローカルにgit addしてない変更があるけど、 元のレポジトリにコミットする必要がある場合、

$ git stash
$ git svn dcommit
$ git stash apply

とかする必要があるんだけど、慣れてないせいか流れを覚えられない。それはそれで支障があるので、

$ alias gitsci='git stash; git svn dcommit; git svn apply'

とかしてしまった。軟弱。

ちなみにこういうのって .gitconfig の [alias] じゃできないんだよね?

Tags:

No responses yet