2011-08-19から1日間の記事一覧
stashしたまま、stashしたときのブランチを削除したら Cannot apply to a dirty working tree, please stage your changes と言われた。このような場合の対処法。 $ git stash show -p | git applystashしたファイルが必要なければ $ git stash dropで、削除…
例えば、masterブランチにfooブランチをマージしたとき $ git checkout master $ git merge foo masterブランチのファイルを選択 $ git checkout --ours path-to-conflicted-file fooブランチのファイルを選択 $ git checkout --theirs path-to-conflicted-f…