How to discard all local changes in git

Git771

 description

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.

 command

git checkout .

 parameter

git :  is a free and open source distributed version control system
checkout :  switch branches or restore working tree files
Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.