Open main menu

Changes

Git svn

24 bytes added, 10:55, 23 July 2013
[http://www.tfnico.com/presentations/git-and-subversion Based on these posts] and on [http://trac.parrot.org/parrot/wiki/git-svn-tutorial this recommended post], and [http://john.albin.net/git/convert-subversion-to-git also this post.]
You need an [[Authors#authors.txt | authors.txt]] file, to correctly convert the metadata. git svn clone http://svn.gna.org/svn/relax/trunk --no-metadata -A authors.txt=$HOME\backup\relax relax_disp=${relax}\relax_disp relax_trunk=${relax}\relax_trunk GIT_USER_NAME="GIT_USER_NAME" copy authors.txt trunkmkdir -p ${relax_trunk} ${relax_disp}
git svn clone http://svn.gna.org/svn/relax/branches/relax_disp trunk --no-metadata -A authors.txt${relax_trunk} copy cp ${relax}/authors.txt relax_disp${relax_trunk}
#Build cd trunk scons cd git svn clone http://svn.gna.org/svn/relax/branches/relax_disp --no-metadata -A authors.txt ${relax_disp} cd cp ${relax}/authors.txt ${relax_disp scons}
== Setup remotes to github ==
=== For branch trunk ===
cd C:\WinPython27\relax\trunk$relax_trunk
# If you are a member of the organization, with writing permissions, then do:
git remote add origin https://${GIT_USER_NAME}@github.com/nmr-relax/relax_trunk.git # See the info git remote -v git remote show origin
Now go to github.com at https://github.com/organizations/nmr-relax click '''Repositories -> New'''.<br>
=== For branch relax_disp ===
cd C:\WinPython27\relax\$relax_disp
# If you are a member of the organization, with writing permissions, then do:
git remote add origin https://${GIT_USER_NAME}@github.com/nmr-relax/relax_disp.git # See the info git remote -v git remote show origin
Now go to github.com at https://github.com/organizations/nmr-relax click '''Repositories -> New'''.<br>