若是不当心 弄错了 git add后 , 又 git commit 了。 先使用git
git log
commit xxxxxxxxxxxxxxxxxxxxxxxxxx Merge: Author: Date:
git reset commit_id
其中,commit_id对应上面git log查出的commit后面的内容。code