Skip to content

Instantly share code, notes, and snippets.

@DanielaValero
Created January 12, 2017 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielaValero/3b480b5ec898eccc36ad11e1a2e5c345 to your computer and use it in GitHub Desktop.
Save DanielaValero/3b480b5ec898eccc36ad11e1a2e5c345 to your computer and use it in GitHub Desktop.
[user]
name = John Doe
email = foo@example.com
[Alias]
st = status
ci = commit
cl = clone
br = branch
co = checkout
df = diff
dc = diff --cached
#resets
rh = reset --hard
discard = reset HEAD --hard
#others
who = shortlog -s --
forkdiff = !bash -c 'git diff $(git merge-base "$1" "$2") "$2" "${@: 3}" ' -
untrack = rm --cache --
#list aliases
new = !sh -c 'git log $1@{1}..$1@{0} "$@"
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
fl = log -u
lg-full = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --pretty=full --name-status
conflicted = ls-files -u
la = "!git config -l | grep alias | cut -c 7-"
ls-ignored = !git ls-files -v | grep ^[a-z]
#Self made
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
mmnff = merge --no-ff
# Pull Requests
pullr = "!git pull --rebase origin $1"
[color]
ui = true
[core]
autocrlf = input
whitespace = trailing-space,space-before-tab,indent-with-non-tab
packedGitLimit = 512m
packedGitWindowSize = 512m
ignorecase = true
[pack]
deltaCacheSize = 2047m
packSizeLimit = 2047m
windowMemory = 2047m
[push]
default = simple
[http]
postBuffer = 157286400
[url "https://"]
insteadOf = git://
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment