Last active
November 13, 2019 21:37
-
-
Save phirework/8409153 to your computer and use it in GitHub Desktop.
Default git config file
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] | |
co = checkout | |
cb = checkout -b | |
br = branch | |
st = status | |
cp = cherry-pick | |
rs = reset --hard HEAD | |
vh = log --invert-grep --committer="AUTHOR\\ NAME" --pretty=format:"%C(yellow)%h\\ %C(magenta)%ad\\ %C(cyan)%<|(35)%cn\\ %Cred%d\\ %Creset%s" --decorate --date=short -20 | |
hist = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short -20 | |
histq = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short -n | |
pushnew = "!git push --set-upstream origin \"$(git rev-parse --abbrev-ref HEAD)\"" | |
dr = push origin --delete | |
[core] | |
editor = subl -w -n | |
excludesfile = ~/.gitignore_global | |
autocrlf = input | |
safecrlf = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment