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:05]
jobatake [Git Commands]
training:git_commands [2021/09/19 21:59] (current)
Line 3: Line 3:
 ===== Useful syntax ===== ===== Useful syntax =====
 Please feel free to add to this page! :D Please feel free to add to this page! :D
-*Create ​empty git folder: ​git init + 
-*Update files: ​git status + 
-*Add file: git add <file name+ 
-*Summary (see if delete, add, etc.): git log +===== Create ​Things ===== 
-*Remote folder: ​git remote add <file namehttps://​github.com/​try-git/​try_git.git + 
-*Remove file: git reset <directory>/<​filename+ 
-*Store: ​git commit + 
-*Difference in working directory: ​git diff +git init                 | Make git folder ​     | 
-*Undogit checkout — <​filename>​ +git add <filename      | Add a file           | 
-*Remote repository: ​git push+git remote add <url    | Add a remote source ​ | 
 +git commit -m "​comment" ​ | Store                | 
 + 
 +===== Save Things ===== 
 + 
 + 
 +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.1453946724.txt.gz
  • Last modified: 2021/09/19 21:59
  • (external edit)