Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
training:git_commands [2016/01/28 06:35] kluong [Table] |
training:git_commands [2016/01/28 06:43] kluong |
||
---|---|---|---|
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 <filename> https://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 | |