Differences
This shows you the differences between two versions of the page.
training:git_commands [2016/01/28 02:33] jobatake [Useful syntax] |
training:git_commands [2021/09/19 21:59] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Git Commands ====== | ||
- | ===== Useful syntax ===== | ||
- | Please feel free to add to this page! :D | ||
- | |||
- | * Create things: | ||
- | * Make git folder repository: git init | ||
- | * Add file: git add <file name> | ||
- | * Remote folder: git remote add <filename> https://github.com/try-git/try_git.git | ||
- | * Store: git commit -m"<thing changed>" | ||
- | * Save things: | ||
- | * Remote repository: git push origin <branchname> | ||
- | * See changes: | ||
- | * Summary of commits (ie. delete, add, etc.): git log | ||
- | * File changes: git status | ||
- | * Working directory changes: git diff | ||
- | * Delete/Undo things: | ||
- | * Remove file: git remove <branchname>/<filename> | ||
- | * Undo: git checkout — <filename> |