-
Website
http://adam.blog.heroku.com/ -
Original page
http://adam.blog.heroku.com/past/2008/5/15/more_git_techniques/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
nevyn
2 comments · 4 points
-
adamheroku
68 comments · 3 points
-
justindz
2 comments · 1 points
-
paulleader
3 comments · 1 points
-
drnic
2 comments · 6 points
-
-
Popular Threads
-
No Knobs
1 week ago · 2 comments
-
Destroying Alien Civilizations, All In A Day's Work
6 days ago · 1 comment
-
No Knobs
> Restore a file to repository version
> svn: rm file; svn up file
> git: rm file; git checkout file
Wouldn't "svn revert file" be more efficient?
> Grab one commit without any of the commits around it:
> svn: svn diff -rN1:N2 > my.patch; scp my.patch other.server; ssh other.server "patch < my.patch"
> git: git fetch; git cherry-pick [commit-hash]
Am I missing something? Wouldn't "svn merge -rN1:N2" work?
git: git checkout -f file
Set some changes aside to work on something else:
svn: svn diff > /tmp/path ; svn revert -R .