Recovering code from git

At one point or another people goof and mess up their codebase beyond the repair of a quick fix. If you have been good about committing your code to your git repository periodically, you can easily go back to one of your previous versions.

There are two commands to restore a working copy of a previously committed revision: git reset and git checkout.  Take a look at this to learn how to make them work for you.

 

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.