Skip to content
Browse files

Update 2012-12-31-git-cheat-sheet.markdown

  • Loading branch information...
1 parent 33b2521 commit 6097c46e0a06b466850897effa98bd744c3471bd @namman committed Jun 17, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 source/_posts/2012-12-31-git-cheat-sheet.markdown
View
3 source/_posts/2012-12-31-git-cheat-sheet.markdown
@@ -19,6 +19,9 @@ git checkout [hash of commit with files you want] -- .\**
git log --oneline -5
```
+# Checkout a version of a file from a previous commit into working tree
+git checkout <hash of previous commit> <path of file>
+
Revert to particular commit
```bash
git reset <hash of commit you want to revert to>

0 comments on commit 6097c46

Please sign in to comment.
Something went wrong with that request. Please try again.