Git – Reverting changes which are not commited yet

To revert changes from one file you can use:

git checkout <filename>

To revert changes from all changed files, do:

git reset --hard HEAD

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy this password:

* Type or paste password here: