开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜