Changes between Version 1 and Version 2 of RepositoryGuidelines


Ignore:
Timestamp:
Feb 26, 2010, 12:06:44 PM (15 years ago)
Author:
FrederikHeber
Comment:

Completed exchange between user

Legend:

Unmodified
Added
Removed
Modified
  • RepositoryGuidelines

    v1 v2  
    1 === How to use the Repository on Jupiter ===
     1= How to use the Repository on Jupiter =
    22
    33In this page we describe how to get access, the first thing you have to do (clone the repository) and how one should usually proceed to exchange new versions.
     
    3737Parts of the code that have been implemented and tested successfully have to be broadcast to others. There are two ways to do this.
    3838
    39 = ... between users =
     39=== ... between users ===
    4040
    4141This is easy if your computers reside in the same network (i.e. wiss-stud), just tell your colleague that he should pull one of your branches as this
     
    5050git remote add <friend> ssh://.../
    5151}}}
     52  2. Use the remote to fetch all remote branches.
     53{{{
     54git fetch <friend>
     55}}}
     56  3. Merge the obtained remote branch ''<remotebranch>'' with one of yours, here called ''<yours>''.
     57{{{
     58git checkout <yours>
     59git merge <remotebranch>
     60}}}
     61Note that ''git pull'' performs the fetch and the merge in a single step.
    5262
    53 = ... with the jupiter repository =
     63=== ... with the jupiter repository ===
    5464
    55 Here, you tell the repository administrator that he should pull one of your branches in the same manner as above. He will check your code and if it is fine, push it onto the jupiter repository. '''Note that you should never ever push yourself branches thereto!''' (except of course you are the administrator :).
     65Here, you tell the repository administrator that he should pull one of your branches in the same manner as above. He will check your code and if it is fine, push it onto the jupiter repository. '''Note that you should never ever push branches by yourself thereto! ''' (except of course you are the administrator :).
    5666