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

software:git [2011/01/31 08:37]
tjhoban
software:git [2011/10/26 06:37]
Line 1: Line 1:
-====== git ====== 
-git is the revision control system which has been adopted to keep track of the AuScope codebase. 
- 
-A comprehensive reference can be found at the git homepage: [[http://​git-scm.com/​]]. 
- 
-The quick version: 
- 
-pull changes down from the central repository (do this before starting your own work.): 
- 
-><​code<>​git pull origin master</​code>​ 
- 
-Add a file: 
- 
-<​code>​git add <​filename/​directory></​code>​ 
- 
-remove a file: 
- 
-<​code>​git rm <​filename/​directory></​code>​ 
- 
-See what changes have been made to the codebase: 
- 
-<​code>​git status</​code>​ 
- 
-commit some changes: 
- 
-<​code>​git commit -m "​commit message"​ <​files/​directories></​code>​ 
- 
-Push committed changes up to the central repository (do this after you've finished): 
- 
-<​code>​git push origin master</​code>​ 
- 
-See how you've changed a file: 
- 
-<​code>​git diff <​filename></​code>​ 
- 
-Sometimes (rarely) a repository will get confused. You will see errors like: 
- 
-<​code>​error:​ unable to create temporary sha1 filename .git/​objects/​95:​ File exists</​code>​ 
- 
-This can be corrected by either "chown -R prog .git", or by the commands: 
- 
-<​code>​ 
-git fsck 
-git prune 
-git repack 
-git fsck 
-</​code>​ 
- 
  
/home/www/auscope/opswiki/data/pages/software/git.txt · Last modified: 2011/10/26 06:37 (external edit)