1:
事件:
git add ;git commit 都已執行;目前需要對上一次的提交進行修改,需要把上次的提交都回退到本地。
git cherry-pick commit-id(剛纔的提交id)
git reset commit-id(剛纔提交的上一次提交id)
參考:(git reset 詳細講解)http://blog.csdn.net/hbwindy/article/details/51519999
1:
事件:
git add ;git commit 都已執行;目前需要對上一次的提交進行修改,需要把上次的提交都回退到本地。
git cherry-pick commit-id(剛纔的提交id)
git reset commit-id(剛纔提交的上一次提交id)
參考:(git reset 詳細講解)http://blog.csdn.net/hbwindy/article/details/51519999