Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tools:git [2023/10/24 13:04] – [ssh push] 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: | ||
| - '': | - '': | ||
| - | ==== See Changes ==== | + | ==== Commit messages ==== |
| + | |||
| + | Each commit in git includes a human-annotated short description in prose. While it's tempting and easy use `" | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | === Examples === | ||
| + | Two commit messages in '' | ||
| + | < | ||
| + | feat: age model with GAM instead of LM | ||
| + | fix: outlier detection applied to all EEG columns | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | ✨️ model.py: age GAM instead of LM | ||
| + | 🐛 plot.R: apply outlier detection ∀ EEG cols | ||
| + | </ | ||
| + | |||
| + | ===== 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 45: | Line 77: | ||
| * push ''/'' | * push ''/'' | ||
| * push '' | * push '' | ||
| - | ==== Github https push ==== | ||
| - | To push to '' | ||
| - | |||
| - | ==== ssh push ==== | ||
| - | '' | ||
| - | |||
| - | |||
| - | Contents of '' | ||
| - | {{: | ||
| + | ===== Advanced ===== | ||
| + | * [[https:// | ||
| + | * '' | ||
| + | * rebase, esp with [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | | ||
| - | If '' | ||