Posts tagged ‘git-svn’

cached: git-SVN: Whys And Hows (by amitu)

NOTE: this is just a copy of a blog-posting originally written by Amit Upadhyay. Since I found it really useful, I was rather disappointed to notice it has gone one day. Thankfully it still was in google’s cache, so I decided to make a copy. The rest of the article is a full-quote: Continue reading ‘cached: git-SVN: Whys And Hows (by amitu)’ »

git-svn workflows: switch to a specific revision in svn and back to head

first, update to current HEAD:

git svn rebase

then, look for the appropriate hash-name in git corresponding to the svn-revision:

git log | grep -C 5 "my-desired-revision"

switching to the revision is done by a checkout:

git co f914a51a99f09aa609f253fb24a5adcfe0014461

then, do your work, e.g. compiling…
to switch back, clean up the changes caused by your work:

git clean -df
git reset --hard

final step is to switch to the “master” branch, which contains the HEAD revision:

git co master

git and svn

by far the best article I’ve read for somebody used to subversion (and tied to an SVN-repo) who wants to use git locally:

Git-SVN: Whys And Hows

thanks!!