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.

 

Print Friendly

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">