Open main menu

Changes

Git svn

643 bytes removed, 14:24, 22 July 2013
no edit summary
= Background relax branches at github =
Now add this as a private remote, by setting the remote name '''hub'''. git remote add hub https://GIT_USER_NAME@github.com/GIT_USER_NAME/relax_trunk.git Now add this as a private remote, by setting the remote name '''hub'''. git remote add hub https://GIT_USER_NAME@github.com/GIT_USER_NAME/relax_disp.git  == Get future updates ==For future updates to the SVN revision HEAD, you now need to do a git svn rebase, which is very similar to: svn up git svn rebaseCheck branch information git branch -a = How the import in 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.]
cd C:\WinPython27\relax
To clone from a revision number, use '''-r NR'''. This will tell which revision to start taking history from. If you want to include all of the history, just leave that option off, but it will take a very long time, and you really don't need all of it.The older a revision you choose, the longer it will take to import. But you will not be able to "git blame" past the earliest revision you import. You also 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
git svn clone -r 20000:HEAD http://svn.gna.org/svn/relax/trunk --no-metadata -A copy authors.txttrunk
git svn clone http://svn.gna.org/svn/relax/branches/relax_disp --no-metadata -A authors.txt
git svn clone -r 20000:HEAD http://svn.gna.org/svn/relax/branches/relax_disp --no-metadata -A copy authors.txtrelax_disp
#Build
cd relax_disp
scons
For futurev updates to the SVN revision HEAD, you now need to do a git svn rebase, which is very similar to: svn up
git svn rebase
Check branch information
git branch -a
== Setup remotes to github ==
=== For branch trunk ===
cd C:\WinPython27\relax\trunk
git remote add origin https://github.com/nmr-relax/relax_trunk.git
# 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
git remote show origin
Now go to github.com at https://github.com/GIT_USER_NAME 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>
 
Now add this as a private remote, by setting the remote name '''hub'''.
git remote add hub https://GIT_USER_NAME@github.com/GIT_USER_NAME/relax_trunk.git
Then send svn branch master of to github
git push -u hub origin master Then build relax scons
=== For branch relax_disp ===
cd C:\WinPython27\relax\relax_disp
git remote add origin https://github.com/nmr-relax/relax_disp.git
# 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
git remote show origin
Now go to github.com at https://github.com/GIT_USER_NAME organizations/nmr-relax click '''Repositories -> New'''.<br>
Call it '''relax_disp'''. We want to preserve history , so do not '''Initialize this repository with a README''' or anything like, README or .gitignore. <br>
 
Now add this as a private remote, by setting the remote name '''hub'''.
git remote add hub https://GIT_USER_NAME@github.com/GIT_USER_NAME/relax_disp.git
Then send svn branch master of to github
git push -u hub origin master
== git operations ==