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:35]
kluong [Table]
training:git_commands [2021/09/19 21:59] (current)
Line 6: Line 6:
  
  
-^ Action ​             ^ Description ​ ^ +===== Create ​Things =====
-Create ​things ​      ​| ​             | +
-| Save things ​        ​| ​             | +
-| See things ​         |              | +
-| Delete/Undo things ​ |              | +
-| Navigate github ​    ​| ​             |+
  
  
-  * Create things: + 
-     * Make git folder ​repository: git init +| git init                 ​| ​Make git folder ​     | 
-     * Add file: git add <​file ​name> +git add <filename> ​      | Add a file           | 
-     * Remote folder: ​git remote add <filenamehttps://​github.com/​try-git/​try_git.git +git remote add <url    | Add a remote source ​ | 
-     * Store: ​git commit -m"<thing changed>+git commit -m "comment" ​ | Store                | 
-  ​* ​Save things: + 
-     * Remote repository: ​git push origin <​branchname>​ +===== Save Things ===== 
-  See changes: + 
-     * Summary ​of commits ​(ie. delete, add, etc.): git log + 
-     * File changes: ​git status +git push origin <​branchname>  ​| Remote repository ​ | 
-     * Working directory changes: git diff + 
-  ​* ​Delete/​Undo ​things: +===== See Changes ===== 
-     * Remove file: git rm <​filename>​ + 
-     * Undo: git reset + 
-  * Navigate github: +| git log     ​| See a summary ​of commits ​  | 
-     * Change directory: git checkout — <​filename>​+git status ​ | See file changes ​          | 
 +| git diff    | Working directory changes ​ | 
 + 
 +===== Delete/​Undo ​Things ===== 
 + 
 +git rm <​filename> ​ | Remove file  | 
 +git reset          | Undo         |
  • training/git_commands.1453962957.txt.gz
  • Last modified: 2021/09/19 21:59
  • (external edit)