Differences

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

Link to this comparison view

computing:gitstuff:user [2014/07/03 13:47]
ramesh
computing:gitstuff:user [2014/09/02 16:11] (current)
ramesh created
Line 4: Line 4:
   * If your project was just created, the ''clone'' command above creates an empty directory named after your project.   * 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 13: 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.1404388052.txt.gz ยท Last modified: 2014/07/03 13:47 by ramesh     Back to top