Next | MJD's Git tips and utilities | 23 |
Your global Git configuration is in $HOME/.gitconfig
It has a useful section called alias:
[alias] co = checkout cp = cherry-pick st = status
Now git co is short for git checkout add so forth
Because I'm lazy
figg = diff grpe = grep revparse = rev-parse
Because I make a lot of typos
You can include options:
mine = log --author=mjd
git mine is just like git log but it only shows my commits
log1 = log --oneline --decorate
git log1 is just like git log but it automatically enables --oneline and --decorate
wip = commit -a -m WIP -n
Quick, commit everything with the message WIP
fx = commit --amend -C HEAD
I use git fx to correct the previous commit
Next | Copyright © 2021 M. J. Dominus |