Dev/git
[git] rollback
냐옴
2021. 3. 2. 10:51
revert change one file
git checkout HEAD -- <filePath>
revert changes all
git checkout .
remove untracked files and directories
git clean -fd
How do I revert all local changes in Git managed project to previous state?
I have a project in which I ran git init. After several commits, I did git status which told me everything was up to date and there were no local changes. Then I made several consecutive changes ...
stackoverflow.com