Rollback to last git commit

后端 未结 6 2124
时光取名叫无心
时光取名叫无心 2020-12-22 16:05

I just did a

git commit -m \"blah\"

then I added some files, how do I rollback and remove what is in my current files that have not yet be

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-22 16:26

    git reset --hard will force the working directory back to the last commit and delete new/changed files.

提交回复
热议问题