2021年3月23日星期二

Git restore files to previous commit

I'm doing some test, and I created a local repos to version some files. I would like to restore all my files to their state at a previous commit.

Is it possible ? I know that git checkout file restore a file to the current commit state. However I'm not sure if git checkout * do the same for all file, and even more here I'm not sure if it's possible to restore from more than just the latest commit.

Thanks :)

https://stackoverflow.com/questions/66774122/git-restore-files-to-previous-commit March 24, 2021 at 10:59AM

没有评论:

发表评论