Skip to content

Instantly share code, notes, and snippets.

@phirework
Last active November 13, 2019 21:37
Show Gist options
  • Save phirework/8409153 to your computer and use it in GitHub Desktop.
Save phirework/8409153 to your computer and use it in GitHub Desktop.
Default git config file
[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