Last active
December 1, 2023 01:54
-
-
Save decentraliser/8232adf2d6ef14abc04db1ce2c5f4c96 to your computer and use it in GitHub Desktop.
Git aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
b = branch -vv | |
bb = branch | |
ba = branch -a -vv | |
cb = checkout -b | |
cm = checkout master | |
cma = checkout main | |
cnv = commit -m --no-verify | |
co = checkout | |
d = branch -D | |
ld = log --pretty=format:"%C(yellow)%h\\ %C(green)%ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=format:'%Y-%m-%d %H:%M:%S' --graph | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat | |
ls = log --pretty=format:"%C(green)%h\\ %C(yellow)[%ad]%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative | |
mnff = merge --no-ff | |
msq = merge --squash | |
p = pull | |
pf = push -f | |
pn = push | |
po = push origin | |
pp = push production | |
psu = push -u origin HEAD | |
r = rebase | |
rbm = rebase master | |
rbom = rebase origin/master | |
rbma = rebase main | |
rboma = rebase origin/main | |
rhma = reset --hard origin/main | |
rem = ls-remote --heads | |
rhm = reset --hard origin/master | |
ru = remote update origin | |
rua = remote update | |
rv = remote -v | |
s = stash | |
sp = stash pop | |
tt = log --tags --decorate --simplify-by-decoration --oneline | |
tp = "!f() { git tag \"$1\" && git push origin \"$1\"; }; f" | |
[user] | |
name = decentraliser | |
email = me@decentraliser.dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
code ~/.gitconfig