Documentation/Create SVN Project Mirror: Difference between revisions

From Commontk
Jump to navigationJump to search
(Created page with '* Setup the 'svn-mirror' branch <pre> mkir PythonQt cd PythonQt git init git svn init -T https://pythonqt.svn.sourceforge.net/svnroot/pythonqt/trunk/ --no-minimize-url git svn f…')
 
mNo edit summary
Line 11: Line 11:
git push origin master:refs/heads/svn-mirror
git push origin master:refs/heads/svn-mirror
</pre>
</pre>


*  .. and the 'patched' branch
*  .. and the 'patched' branch
Line 24: Line 23:
git push origin patched:refs/heads/patched
git push origin patched:refs/heads/patched
</pre>
</pre>


*  Rebase the 'svn-mirror' branch
*  Rebase the 'svn-mirror' branch
Line 32: Line 30:
git svn rebase
git svn rebase
</pre>
</pre>


* Merge 'svn-mirror' branch with the 'patched' one
* Merge 'svn-mirror' branch with the 'patched' one

Revision as of 08:38, 29 July 2011

Home < Documentation < Create SVN Project Mirror
  • Setup the 'svn-mirror' branch
mkir PythonQt
cd PythonQt
git init
git svn init -T https://pythonqt.svn.sourceforge.net/svnroot/pythonqt/trunk/ --no-minimize-url
git svn fetch 
git gc
git remote add origin git@github.com:commontk/PythonQt.git
git push origin master:refs/heads/svn-mirror
  • .. and the 'patched' branch
git checkout -b patched
  • hack, hack, hack
git push origin patched:refs/heads/patched
  • Rebase the 'svn-mirror' branch
git checkout svn-mirror
git svn rebase
  • Merge 'svn-mirror' branch with the 'patched' one