Skip to content

Instantly share code, notes, and snippets.

@forelabs
Created September 25, 2019 08:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save forelabs/12a125de58c8de9f5e5975d8022e2df6 to your computer and use it in GitHub Desktop.
global git config
[push]
default = tracking
[branch]
autosetuprebase = always
[alias]
c = commit
u = pull --rebase
p = push
dev = checkout development
new = checkout -b
co = checkout
pb = push -u origin HEAD
pf = push --force-with-lease
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
[credential]
helper = cache --timeout=3600
[core]
autocrlf = input
excludesfile = ~/.gitignore_global
[url "git@github.com:"]
insteadOf = https://github.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment