git stash and merge : resolve conflict
conflictの解決。
現在変更中の物があるとき他で変更されていて git pullできないとき
$ git stash
Saved working directory and index state WIP on master: 40e49c2 Merge branch 'master' of host999:/home/git/lib-souten HEAD is now at 40e49c2 Merge branch 'master' of of host999:/home/git/lib-souten
$ git pull
最新のmasterを落とす。
$ git stash list
stash@{0}: WIP on master: 40e49c2 Merge branch 'master' of host999:/home/
$ git stash pop
Auto-merging Web/User.php # On branch master # Changes not staged for commit: # (use "git add..." to update what will be committed) # (use "git checkout -- ..." to discard changes in working directory) # # modified: Web/User.php # # Untracked files: # (use "git add ..." to include in what will be committed) no changes added to commit (use "git add" and/or "git commit -a") Dropped refs/stash@{0} (4283dad5a8fbe638796971bc68963d5cc591a322)
auto mergeでOKっぽいです。
Doroppedということで
# git stash list
は空になりました。