***取回已經提交的代碼 git reset HEAD^
git can't merge 的處理
1.git status 確保status 為空,可以先提交
2.git reset HEAD^ 取回已經提交的代碼
3.git status 查看 此時提交代碼已經都已經拿回
4.git stash -u 緩存所有代碼
5.git status 此時應該為空
6.git log
7.git reset --hard HEAD^ 回退版本
8.git pull --rebase origin master 更新代碼 與fetch 一樣
9.git stash apply 合並自己stash的代碼
10. git mergetool 解決沖突
11.git gui 提交代碼 --commit
12.git push origin HEAD:refs/for/master