Last active
November 17, 2024 08:18
-
-
Save decentraliser/8232adf2d6ef14abc04db1ce2c5f4c96 to your computer and use it in GitHub Desktop.
Git aliases
This file contains hidden or 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 | |
| ba = branch -a -vv | |
| bb = branch | |
| cb = checkout -b | |
| cm = checkout master | |
| cma = checkout main | |
| cnv = commit -m --no-verify | |
| co = checkout | |
| d = branch -D | |
| free = !git log --pretty=format:'%C(cyan bold)%ad%C(magenta) | %C(yellow)- %C(green bold)%s' --date=format:'%Y-%m-%d %H:%M' | sed 's/| - ./\\u&/g' | |
| 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 | |
| rbma = rebase main | |
| rbom = rebase origin/master | |
| rboma = rebase origin/main | |
| rem = ls-remote --heads | |
| rhm = reset --hard origin/master | |
| rhma = reset --hard origin/main | |
| ru = remote update origin | |
| rua = remote update | |
| rv = remote -v | |
| s = stash | |
| sp = stash pop | |
| tp = "!f() { git tag \"$1\" && git push origin \"$1\"; }; f" | |
| tt = log --tags --decorate --simplify-by-decoration --oneline | |
| [user] | |
| name = decentraliser | |
| email = [email protected] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
code ~/.gitconfig