Differences

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

Link to this comparison view

computing:gitstuff:user [2014/07/03 13:43]
ramesh
computing:gitstuff:user [2014/09/02 16:11] (current)
ramesh created
Line 2: Line 2:
  
   * Clone a project first. The project needs to added by the administrator: ''git clone gitosis@git.mpifr-bonn.mpg.de:testproj.git'' (replace ''testproj'' with your project name)   * Clone a project first. The project needs to added by the administrator: ''git clone gitosis@git.mpifr-bonn.mpg.de:testproj.git'' (replace ''testproj'' with your project name)
 +  * If your project was just created, the ''clone'' command above creates an empty directory named after your project.
   * Create and/or edit files/directories    * Create and/or edit files/directories 
-  * Add, commit and push changes: ''git add <list_of_files/dirs>;git commit -a -m "Added <list_of_files>";git push''+  * Add, commit and push changes:  
 +     * ''git add <list_of_files/dirs>''  
 +     * ''git commit -a -m "Added <list_of_files>"''  
 +     * ''git push''
   * Any new version can also be "pushed" in a similar fashion as above.   * Any new version can also be "pushed" in a similar fashion as above.
   * google for more information!   * google for more information!
Line 12: Line 16:
   * Push repository to git server (from the existing repository): ''git push <alias> <branch>''   * Push repository to git server (from the existing repository): ''git push <alias> <branch>''
  
-=== Other issues === 
- 
-  * Discard a commit: ''git reset --hard HEAD~1'' (can also use ''--soft HEAD^'' to step back a commit) 
-  * Missing **[** or **]** in gitosis.conf : ask Guido Koelsh to fix error on the git server. 
 
computing/gitstuff/user.1404387785.txt.gz ยท Last modified: 2014/07/03 13:43 by ramesh     Back to top