training:git_commands

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
training:git_commands [2016/01/28 06:42]
kluong [Useful syntax]
training:git_commands [2021/09/19 21:59] (current)
Line 6: Line 6:
  
  
-Create ​things:+===== Create ​Things ===== 
  
  
Line 14: Line 15:
 | git commit -m "​comment" ​ | Store                | | git commit -m "​comment" ​ | Store                |
  
-Save things:+===== Save Things ===== 
  
 | git push origin <​branchname> ​ | Remote repository ​ | | git push origin <​branchname> ​ | Remote repository ​ |
  
-See changes:+===== See Changes ===== 
  
 | git log     | See a summary of commits ​  | | git log     | See a summary of commits ​  |
Line 24: Line 27:
 | git diff    | Working directory changes ​ | | git diff    | Working directory changes ​ |
  
-Delete/undo things: +===== Delete/Undo Things =====
  
 | git rm <​filename> ​ | Remove file  | | git rm <​filename> ​ | Remove file  |
 | git reset          | Undo         | | git reset          | Undo         |
  • training/git_commands.1453963370.txt.gz
  • Last modified: 2021/09/19 21:59
  • (external edit)