-
-
Save jcchikikomori/9bf40014fa4fa27fdec6d019d3b5f43c to your computer and use it in GitHub Desktop.
.gitconfig aliases (adog, log, status)
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] | |
adog = log --all --decorate --oneline --graph | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lg1 = 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 | |
lg = !"git lg1" | |
st = status --short | |
b = branch -vv | |
[core] | |
editor = code --wait | |
autocrlf = input | |
[merge] | |
tool = p4merge | |
[mergetool "vscode-mergetool"] | |
cmd = code --wait | |
[mergetool "p4merge"] | |
path = C:\\Program Files\\Perforce\\p4merge.exe | |
[diff] | |
tool = p4merge | |
[difftool] | |
prompt = false | |
[difftool "vscode-difftool"] | |
cmd = code --wait --diff $LOCAL $REMOTE | |
[difftool "p4merge"] | |
path = C:\\Program Files\\Perforce\\p4merge.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment