Created
January 13, 2022 15:45
-
-
Save ValentinNikolaev/686dd4415e761283820ba81d0b494ecf to your computer and use it in GitHub Desktop.
Helpfull 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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| git config --global alias.co checkout && | |
| git config --global alias.st status && | |
| git config --global alias.br branch && | |
| git config --global alias.ci commit && | |
| git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" && | |
| git config --global alias.hist "log --pretty=format:%h %ad | %s%d [%an] --graph --date=short" && | |
| git config --global alias.l "log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'" && | |
| git config --global alias.ll "log --stat --abbrev-commit" && | |
| git config --global alias.llg "log --color --graph --pretty=format:'%C(bold white)%H %d%Creset%n%s%n%+b%C(bold blue)%an <%ae>%Creset %C(bold green)%cr (%ci)' --abbrev-commit" && | |
| git config --global alias.llga "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all" && | |
| git config --global alias.alias "! git config --get-regexp ^alias\. | sed -e s/^alias\.// -e s/\ /\ =\ /" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment