TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Git immersion - a simple git tutorial

9 pointsby pulleasyabout 13 years ago

3 comments

zengrabout 13 years ago
I am surprised it didn't cover reverting back a file to old version:<p>1. Check the diff: git diff &#60;commit hash&#62; &#60;file&#62;<p>2. Revert back: git reset &#60;commit hash&#62; &#60;file&#62;
duckabout 13 years ago
This was pretty popular on HN last year: <a href="http://news.ycombinator.com/item?id=2104872" rel="nofollow">http://news.ycombinator.com/item?id=2104872</a>
评论 #3891200 未加载
MoOmerabout 13 years ago
I found this on github a while ago: <a href="http://rogerdudler.github.com/git-guide/" rel="nofollow">http://rogerdudler.github.com/git-guide/</a>