开发者

Git edit undo. How do I edit undo many files with git?

开发者 https://www.devze.com 2023-01-28 14:51 出处:网络
I just made a bunch of mistakes in a bunch of my files. N开发者_C百科ow I want to revert all those files back to the last committed change.

I just made a bunch of mistakes in a bunch of my files.

N开发者_C百科ow I want to revert all those files back to the last committed change.

How to I do this with Git?


git checkout HEAD -- path/to/file1 path/to/file2 ...

To undo all of the changes you've made to every file in your working tree:

git reset --hard HEAD
0

精彩评论

暂无评论...
验证码 换一张
取 消