reverting changes
- From
Thiago Farina <tfransosi@gmail.com>
- Date
- Apr 4, 2013, 22:03 UTC
- Message-ID
- <CACnwZYe45poRihJToDY5yrLeY-wc=6HSjZBanjGvtiopbuAAFw@mail.gmail.com>
Hi,
When I want to revert a change to a file that is already committed what is the best way?
The way I found was:
$ git checkout HEAD /path/to/my/file $ git reset HEAD /path/to/my/file
Is this the canonical/best way or there other (easier-faster) ways?
Thanks,