How to discard all local changes in git
In daily development, if you want to quickly discard all the modified content after modifying multiple files, you can discard the local modifications through the following git command. Come and learn.
git checkout .
git : is a free and open source distributed version control system checkout : switch branches or restore working tree files