Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Git immersion - a simple git tutorial (gitimmersion.com)
9 points by pulleasy on April 25, 2012 | hide | past | favorite | 4 comments


I am surprised it didn't cover reverting back a file to old version:

1. Check the diff: git diff <commit hash> <file>

2. Revert back: git reset <commit hash> <file>


This was pretty popular on HN last year: http://news.ycombinator.com/item?id=2104872


Glad it's re-posted. I missed it last year, and it's exactly what I needed. It's making me fairly proficient in a very short time.


I found this on github a while ago: http://rogerdudler.github.com/git-guide/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: