newdevs:git:commands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| newdevs:git:commands [2024/08/29 13:34] – sleary | newdevs:git:commands [2025/07/24 01:12] (current) – git commit --amend --date=now --no-edit sleary | ||
|---|---|---|---|
| Line 26: | Line 26: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| + | * '' | ||
| * '' | * '' | ||
| * '' | * '' | ||
| Line 52: | Line 53: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| + | * '' | ||
| * '' | * '' | ||
| * '' | * '' | ||
| Line 106: | Line 108: | ||
| ===== Aliases ===== | ===== Aliases ===== | ||
| - | Shortens normal commands so you type less: | + | Shortens normal commands so you type less. You can add them one at a time from the command line: |
| < | < | ||
| Line 116: | Line 118: | ||
| </ | </ | ||
| + | You can also edit '' | ||
| + | With the above aliases, you would check out main using: | ||
| + | |||
| + | < | ||
| + | |||
| + | ==== Bash Aliases ==== | ||
| + | |||
| + | Mike Rylander suggests using bash aliases so you can skip typing '' | ||
| + | |||
| + | < | ||
| + | # git-related contents of miker' | ||
| + | alias branch=' | ||
| + | alias ci=' | ||
| + | alias co=' | ||
| + | alias dif=' | ||
| + | alias fetch=' | ||
| + | alias lg=' | ||
| + | alias pick=' | ||
| + | alias pull=' | ||
| + | alias push=' | ||
| + | alias stash=' | ||
| + | alias status=' | ||
| + | alias wt=' | ||
| + | </ | ||
| + | |||
| + | With these bash aliases in place, you would check out main using: | ||
| + | |||
| + | < | ||
newdevs/git/commands.1724952892.txt.gz · Last modified: 2024/08/29 13:34 by sleary