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 02:18]
jobatake [Useful syntax]
training:git_commands [2021/09/19 21:59] (current)
Line 4: Line 4:
 Please feel free to add to this page! :D Please feel free to add to this page! :D
  
-  * Create things: + 
-     * Create ​empty git folder: ​git init + 
-     * Add file: git add <​file ​name> +===== Create ​Things ===== 
-     * Remote folder: ​git remote add <file namehttps://​github.com/​try-git/​try_git.git + 
-     * Store: ​git commit -m"<​filename>​" + 
-  * Update things: + 
-     * Update files: ​git status +git init                 | Make git folder ​     | 
-     * See change in working directory: git diff +git add <filename> ​      | Add a file           | 
-  * Move things: +git remote add <url    | Add a remote source ​ | 
-     * Remote repository: ​git push +git commit -m "comment"  ​| Store                | 
-  See changes: + 
-     * Summary (see if delete, add, etc.): ​git log +===== Save Things ===== 
-  Delete/​Undo ​things: + 
-     * Remove file: git reset <​directory>/​<​filename>​ + 
-     * Undo: git checkout — <​filename>​+git push origin <​branchname> ​ | Remote repository ​ | 
 + 
 +===== See Changes ===== 
 + 
 + 
 +| git log     ​| See a summary of commits ​  | 
 +git status ​ See file changes ​          | 
 +git diff    | Working directory changes ​ 
 + 
 +===== Delete/​Undo ​Things ===== 
 + 
 +git rm <​filename> ​ | Remove file  | 
 +| git reset          | Undo         |
  • training/git_commands.1453947513.txt.gz
  • Last modified: 2021/09/19 21:59
  • (external edit)