Difference: GitFlorianUhlig (1 vs. 5)

Revision 5
31 May 2011 - Main.FlorianUhlig
Line: 1 to 1
 
META TOPICPARENT name="HomepageFlorianUhlig"
git clone ssh://uhlig@lxetch32.gsi.de/misc/uhlig/GIT/cbmroot
Line: 31 to 31
 
    • git push origin master
Added:
>
>

Create a new git working directory from gitorious@gsi

 
Changed:
<
<
  • Get the latest updates from the SVN repository
>
>
  • Create a clone of the gitorious repository

  • Add the gitorious repository as path to push changes (if necessary)

  • Create symbolic links for all the external dependencies (only needed for cbmroot, pandaroot and r3broot). Check on https://subversion.gsi.de/trac/fairroot/browser/cbmroot/trunk which external directories from fairbase are defined. For all of these directories create symbolic links
    • ln -s ../fairbase/base

  • For cbmroot one has to copy the required fieldmaps to the input directory.

Create a new branch for the development

To make things more easy for later merges it is best to do all the developments in a development branch. If the development is ready to go back to the SVN repository one has to merge the development branch into the master branch.
 
Changed:
<
<
    • git svn fetch
>
>
  • git checkout -b branchname
 

-- FlorianUhlig - 18 May 2010
Revision 4
31 May 2011 - Main.FlorianUhlig
Line: 1 to 1
 
META TOPICPARENT name="HomepageFlorianUhlig"
git clone ssh://uhlig@lxetch32.gsi.de/misc/uhlig/GIT/cbmroot
Line: 11 to 11
 

Working with GIT, SVN and gitorious

Changed:
<
<
The repository where the connection between the SVN repository and gitorious@gsi is done is at the demac006. Here one has to fetch the latest updates from SVN, push them to gitorious or in the other direction fetch the latest updates from gitorious and dcommit them to SVN. All the other git repositories should be synchronized with the gitorious repository at gsi.

  • Get the latest updates from the SVN repository
    • git svn fetch
>
>
After i messed up the first version of the git repository due to unresolvable differences between the gitorious repository and the working copy which was used to synchronize git with svn I cam to the conclusion that it is better to use the synchronization repository only for synchronization. In the first version I did also the work (edit, new branches, merges and so on) in this directory. In the following I will document how I setup the second version and how the workflow looks like.
 
Added:
>
>
The synchronization repositories between the SVN repository and gitorious@gsi is on demac006 at ~/GIT This directory should be only used to fetch the latest updates from SVN, push them to gitorious and maybe after merging (done from another working directory) fetch the new version from gitorious and dcommit them to SVN. All the other git repositories should be synchronized with the gitorious repository at gsi.

Setup a new git repository on gitorious@GSI


  • Add the gitorious repository as path to push changes

  • Create the gitorious repository by pushing the data
    • git push origin master
 
Deleted:
<
<
git svn clone https://subversion.gsi.de/fairroot/fairbase/release fairbase

git remote add origin git@gitorious.gsi.de:fairroot-development/fairroot-development.git

git push origin master
 
Added:
>
>
  • Get the latest updates from the SVN repository
 
Added:
>
>
    • git svn fetch
 

-- FlorianUhlig - 18 May 2010
Revision 3
26 May 2011 - Main.FlorianUhlig
Line: 1 to 1
 
META TOPICPARENT name="HomepageFlorianUhlig"
git clone ssh://uhlig@lxetch32.gsi.de/misc/uhlig/GIT/cbmroot
Line: 23 to 23
 

Added:
>
>
git svn clone https://subversion.gsi.de/fairroot/fairbase/release fairbase

git remote add origin git@gitorious.gsi.de:fairroot-development/fairroot-development.git

git push origin master
 

Revision 2
18 May 2011 - Main.FlorianUhlig
Line: 1 to 1
 
META TOPICPARENT name="HomepageFlorianUhlig"
git clone ssh://uhlig@lxetch32.gsi.de/misc/uhlig/GIT/cbmroot
Line: 8 to 8
 

commits to svn should only be done from GSI machine
Added:
>
>

Working with GIT, SVN and gitorious

The repository where the connection between the SVN repository and gitorious@gsi is done is at the demac006. Here one has to fetch the latest updates from SVN, push them to gitorious or in the other direction fetch the latest updates from gitorious and dcommit them to SVN. All the other git repositories should be synchronized with the gitorious repository at gsi.

  • Get the latest updates from the SVN repository
    • git svn fetch

  -- FlorianUhlig - 18 May 2010
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CBM Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)