User Tools

Site Tools


software:git

This wiki is not maintained! Do not use this when setting up AuScope experiments!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:git [2011/01/31 08:37]
tjhoban
software:git [2011/10/26 06:37] (current)
Line 8: Line 8:
 pull changes down from the central repository (do this before starting your own work.): pull changes down from the central repository (do this before starting your own work.):
  
-><code<>git pull origin master</​code>​+<​code>​git pull origin master</​code>​
  
 Add a file: Add a file:
Line 47: Line 47:
 </​code>​ </​code>​
  
 +====== Sample Usage ======
 +
 +First of all: obtain a copy of the codebase. The only dependency is the '​git-core'​ package (for ubuntu and debian).
 +<​code>​
 +git clone ssh://​observer@ops-serv2/​home/​observer/​gits/​pcfs_prod.git
 +</​code>​
 +If we already have a repository, we execute a "​pull"​ to ensure our codebase is current before making any changes.
 +<​code>​
 +cd pcfs_prod
 +git pull origin master
 +</​code>​
 +We wish to modify the template station.prc slightly.
 +<​code>​
 +cd pcfs_prod/​AuscopeUtils/​proc
 +vi station.prc
 +</​code>​
 +Having saved our changes, we verify what we have changed, and commit it:
 +<​code>​
 +git diff station.prc
 +git commit -m "​Tweaked the doodad."​ station.prc
 +</​code>​
 +Now we push our change back up to the primary repository.
 +<​code>​
 +git push origin master.
 +</​code>​
 +The modified station.prc can now be retrieved by executing a "git pull" on any other git repository (ie. in the /​usr2/​AuScopeUtils directories on the remote pcfs machines).
  
/home/www/auscope/opswiki/data/attic/software/git.1296463050.txt.gz · Last modified: 2011/10/26 06:37 (external edit)