Skip to content

Instantly share code, notes, and snippets.

@daniel08s
Created November 19, 2018 14:13
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 daniel08s/5a877ec6eb94e9ee69eb4d041affe116 to your computer and use it in GitHub Desktop.
Save daniel08s/5a877ec6eb94e9ee69eb4d041affe116 to your computer and use it in GitHub Desktop.
Git config
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[rerere]
enabled = 1
autoupdate = 1
[core]
quotepath = false
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
editor = "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
[push]
default = simple
[color]
ui = true
[color "branch"]
current = yellow black
local = yellow
remote = magenta
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red
new = green
whitespace = white reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
branch = magenta
[alias]
au = add -u
aa = add --all
ai = add -i
b = branch
ci = commit -S
co = checkout
d = diff
dc = diff --cached
f = fetch
fp = !git fetch && git pull
fo = fetch origin
fu = fetch upstream
l = log --oneline
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
file-log = log -p
pr = pull --rebase --prune
rh = reset --hard
rm-ignored = ! git ls-files --ignored --exclude-standard | xargs git rm
st = status
sup = submodule update --init --recursive
sua = submodule foreach --recursive
subs = !git submodule init && git sup
news = log -p HEAD@{1}..HEAD@{0}
icdiff = ! git difftool --no-prompt --extcmd icdiff | less
x = ! git icdiff
users = ! git log --all --format='%aN <%aE>' | sort -u
undo = reset HEAD~1 --mixed
unstage = reset HEAD
unchange = checkout-index -a -f # drop changes but keep the index / staged changes
amend = commit -a -S --amend
rename = commit --amend -S -m
wipe = !git add -A && git commit -qm -S 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
unstash = stash apply
pushall = !git push --all && git push --tags
sync-fork = !git fetch upstream && git checkout master && git merge upstream/master
up = !git fetch && git rebase --autostash FETCH_HEAD
logs = log --show-signature
cis = commit -S
[commit]
template = ~/git_commit_message
gpgsign = true
[diff]
compactionHeuristic = true
[gpg]
program = gpg
[crendetial]
helper = cache
[credential]
helper = store
# If applied, this commit will...
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment