Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tools:git [2023/11/20 09:24] – [Track Changes] will | tools:git [2026/06/17 14:17] (current) – [Git] will | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Alternative SCM tools include '' | Alternative SCM tools include '' | ||
| - | '' | + | '' |
| + | |||
| + | See [[: | ||
| Line 12: | Line 14: | ||
| * https:// | * https:// | ||
| - | ===== Using ===== | + | ===== Track Changes |
| - | ==== Track Changes ==== | + | |
| + | {{: | ||
| + | |||
| + | On the command line in terminal/ | ||
| + | Need a mnemonic? Think of the '' | ||
| - | On the command line in terminal/ | ||
| < | < | ||
| git add $file # move changes in $file to " | git add $file # move changes in $file to " | ||
| Line 21: | Line 26: | ||
| git push # send changes to a server (e.g. github) | git push # send changes to a server (e.g. github) | ||
| </ | </ | ||
| + | |||
| + | <WRAP alert round> | ||
| + | | ||
| + | |||
| + | Only the '' | ||
| + | |||
| + | '' | ||
| + | </ | ||
| By default, '' | By default, '' | ||
| Line 29: | Line 42: | ||
| - '': | - '': | ||
| - | === Commit messages === | + | ==== Commit messages |
| Each commit in git includes a human-annotated short description in prose. While it's tempting and easy use `" | Each commit in git includes a human-annotated short description in prose. While it's tempting and easy use `" | ||
| Line 35: | Line 48: | ||
| * https:// | * https:// | ||
| - | == Examples == | + | === Examples |
| Two commit messages in '' | Two commit messages in '' | ||
| < | < | ||
| Line 47: | Line 60: | ||
| </ | </ | ||
| - | ==== See Changes ==== | + | ===== See Changes ===== |
| A huge benefit of version control is to see the what's changed. This can be done with web, graphical, and command line interfaces. | A huge benefit of version control is to see the what's changed. This can be done with web, graphical, and command line interfaces. | ||
| Line 63: | Line 77: | ||
| * push ''/'' | * push ''/'' | ||
| * push '' | * push '' | ||
| - | ==== Github https push ==== | ||
| - | To push to '' | ||
| - | |||
| - | ==== ssh push ==== | ||
| - | '' | ||
| - | |||
| - | |||
| - | Contents of '' | ||
| - | {{: | ||
| - | |||
| - | |||
| - | If '' | ||
| - | ==== Advanced ==== | + | ===== Advanced |
| * [[https:// | * [[https:// | ||
| * '' | * '' | ||
| * rebase, esp with [[https:// | * rebase, esp with [[https:// | ||
| - | * [[https:// | + | * [[https:// |
| + | * [[https:// | ||
| | | ||