Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| git_aliases [2019/02/17 14:09] – [Overview] rpjday | git_aliases [2019/02/25 13:15] (current) – [How to set a shell-style Git alias] rpjday | ||
|---|---|---|---|
| Line 36: | Line 36: | ||
| < | < | ||
| $ git config --global alias.bl blame | $ git config --global alias.bl blame | ||
| - | $ git config --global alias.blm 'bl Makefile" | + | $ git config --global alias.bm 'bl Makefile" |
| </ | </ | ||
| Line 42: | Line 42: | ||
| < | < | ||
| - | $ git blm | + | $ git bm |
| </ | </ | ||
| - | |||
| ==== Aliases in the .gitconfig file ==== | ==== Aliases in the .gitconfig file ==== | ||
| Line 60: | Line 59: | ||
| ... | ... | ||
| </ | </ | ||
| + | |||
| + | ===== How to unset Git aliases ===== | ||
| + | |||
| + | < | ||
| + | $ git config --global --unset alias.blm | ||
| + | </ | ||
| + | |||
| + | or just edit the '' | ||
| ===== How to set a shell-style Git alias ===== | ===== How to set a shell-style Git alias ===== | ||
| Line 65: | Line 72: | ||
| $ git alias bu "!git rev-parse --abbrev-ref --symbolic-full-name " | $ git alias bu "!git rev-parse --abbrev-ref --symbolic-full-name " | ||
| </ | </ | ||
| + | |||
| + | The shell command being run does not have to be '' | ||