You should install [[msysgit]] on windows, to do the commands.
== The relax_trunk ==
Go to https://github.com/nmr-relax/relax_trunk <br>
Click '''Fork'''.
Now add this as a private remote, by setting the remote name '''hub'''.
<source lang="bash"> # Windows set relax_trunk="C:\WinPython27\relax\relax_trunk" set GIT_USER_NAME="GIT_USER_NAME" md %relax_trunk% cd %relax_trunk% # Linux bash ; relax_trunk=$HOME/relax/relax_trunk GIT_USER_NAME="GIT_USER_NAME" mkdir -p ${relax_trunk} cd $relax_trunk git init # Windows git remote add origin https://%GIT_USER_NAME%@github.com/nmr-relax/relax_trunk.git git remote add hub https://%GIT_USER_NAME%@github.com/%GIT_USER_NAME%/relax_trunk.git # Linux git remote add origin https://${GIT_USER_NAME}@github.com/nmr-relax/relax_trunk.git git remote add hub https://${GIT_USER_NAME}@github.com/${GIT_USER_NAME}/relax_trunk.git # Or if you have setup a SSH key in github, and tested with: ssh -T git@github.com git remote set-url origin git@github.com:nmr-relax/relax_trunk.git git remote set-url hub git@github.com:${GIT_USER_NAME}/relax_trunk.git git fetch origin git checkout --track origin/master git fetch hub #Build scons ## Now we add the user scripts repo # Windows git clone https://%GIT_USER_NAME%@github.com/nmr-relax/relax_scripts.git # Linux git clone https://${GIT_USER_NAME}@github.com/nmr-relax/relax_scripts.git</source> Go to https://github.com/nmr-relax/relax_scripts <br>Click '''Fork'''.<source lang="bash"> cd relax_scripts # Windows git remote add hub https://%GIT_USER_NAME%@github.com/%GIT_USER_NAME%/relax_scripts.git # Linux git remote add hub https://${GIT_USER_NAME}@github.com/${GIT_USER_NAME}/relax_scripts.git</source> == The relax_disp ==Go to https://github.com/nmr-relax/relax_disp <br>Click '''Fork'''.
Now add this as a private remote, by setting the remote name '''hub'''.
<source lang="bash"> # Windows set relax_disp="C:\WinPython27\relax\relax_disp" set GIT_USER_NAME="GIT_USER_NAME" md %relax_disp% cd %relax_disp% # Linux bash ; relax_disp=$HOME/relax/relax_disp GIT_USER_NAME="GIT_USER_NAME" mkdir -p ${relax_disp} cd $relax_disp git init # Windows git remote add origin https://%GIT_USER_NAME%@github.com/nmr-relax/relax_disp.git git remote add hub https://%GIT_USER_NAME%@github.com/%GIT_USER_NAME%/relax_disp.git # Linux git remote add origin https://${GIT_USER_NAME}@github.com/nmr-relax/relax_disp.git git remote add hub https://${GIT_USER_NAME}@github.com/${GIT_USER_NAME}/relax_disp.git git fetch origin git checkout --track origin/master git fetch hub #Build scons
Go to https://github.com/nmr-relax/relax_scripts <br>Click '''Fork'''.<source lang== Get future updates =="bash"> cd relax_scripts # WindowsFor future updates to the SVN revision HEAD, you now need to do a git svn rebase, which is very similar toremote add hub https: svn up//%GIT_USER_NAME%@github.com/%GIT_USER_NAME%/relax_scripts.git git svn rebaseCheck branch information# Linux git branch -aremote add hub https://${GIT_USER_NAME}@github.com/${GIT_USER_NAME}/relax_scripts.git</source>
= How the import to github was done =
[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 should install need an [[msysgitAuthors#authors.txt | authors.txt]] on windowsfile, to do correctly convert the checkoutmetadata.<source lang="bash"> bash ; md C:\WinPython27\relax=$HOME/backup/relax ; cd C:\WinPython27\relax_trunk=${relax}/relax_trunk ; relax_disp=${relax}/relax_disp ; GIT_USER_NAME="GIT_USER_NAME" mkdir -p ${relax_trunk} ${relax_disp} ;
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${relax_trunk} ; cp authors.txt ${relax_trunk} ; cat ${relax_trunk}/.git/config cp ${relax_trunk}/.git/config ${relax_trunk}/.git/config_bck copy awk '{gsub(a,b);print}' a=".*authorsfile =.*" b=" authorsfile = ${relax_trunk}/authors.txt trunk" ${relax_trunk}/.git/config_bck > ${relax_trunk}/.git/config cat ${relax_trunk}/.git/config
git svn clone http://svn.gna.org/svn/relax/branches/relax_disp --no-metadata -A authors.txt${relax_disp} ; copy cp authors.txt ${relax_disp} ; #Buildcat ${relax_disp}/.git/config cd trunkcp ${relax_disp}/.git/config ${relax_disp}/.git/config_bck scons cd awk '{gsub(a,b);print}' a=".*authorsfile =.*" b=" authorsfile = ${relax_disp}/authors.txt" ${relax_disp}/.git/config_bck > ${relax_disp}/.git/config cd cat ${relax_disp}/.git/config scons</source>
# 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</source>
Now go to github.com at https://github.com/organizations/nmr-relax click '''Repositories -> New'''.<br>
Call it '''relax_trunk'''. We want to preserve history , so do not '''Initialize this repository with a README''' or anything like, README or .gitignore. <br>