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:02] – [ssh push] will | tools:git [2025/09/18 14:23] (current) – [ssh push] will | ||
---|---|---|---|
Line 12: | Line 12: | ||
* 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 24: | ||
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 40: | ||
- '': | - '': | ||
- | ==== 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 75: | ||
* push ''/'' | * push ''/'' | ||
* push '' | * push '' | ||
+ | |||
+ | ===== Github setup ===== | ||
+ | For '' | ||
+ | |||
==== Github https push ==== | ==== Github https push ==== | ||
To push to '' | To push to '' | ||
Line 52: | Line 86: | ||
- | Contents of '' | + | Contents of '' |
- | {{: | + | {{: |
If '' | If '' | ||
+ | |||
+ | ===== Advanced ===== | ||
+ | * [[https:// | ||
+ | * '' | ||
+ | * rebase, esp with [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | | ||
+ |