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/04/04 13:28] (current) – [Useful Git Commands] tmccanna | ||
---|---|---|---|
Line 52: | Line 52: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
* '' | * '' | ||
* '' | * '' | ||
Line 106: | Line 107: | ||
===== 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 117: | ||
</ | </ | ||
+ | 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