git svn - Updating a git mirror of an SVN repository -


i created git mirror of svn repository doing:

  • create new repo on github
  • mkdir mirror && cd mirror
  • git svn init [svn url]
  • git svn fetch -rhead
  • git remote add origin [github url]
  • git svn rebase
  • git push origin master

this works great, , can update simply:

  • git svn rebase
  • git push origin master

however, if move different computer , want update it, tried:

  • git clone [github url]
  • git svn init [svn url]
  • git svn fetch -rhead
  • git remote add origin [github url]
  • git svn rebase

but here get:

"unable determine upstream svn information working tree history"

can explain correct way this?

i had same need , found example here:

http://rip747.wordpress.com/2009/06/17/reviving-a-git-svn-clone/

to answer in context of question:

git clone [github url] cd repo git svn init [svn url] git update-ref refs/remotes/git-svn refs/remotes/origin/master git svn rebase 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -