Skip to content

Instantly share code, notes, and snippets.

@DuckOfDoom
Last active February 25, 2016 20:38
Show Gist options
  • Save DuckOfDoom/25f948de3bb207c79c9c to your computer and use it in GitHub Desktop.
Save DuckOfDoom/25f948de3bb207c79c9c to your computer and use it in GitHub Desktop.
Git Config
[core]
autocrlf = false
preloadindex = true
fscache = true
editor = vim
ignorecase = false
[alias]
bclean = "!f() { git remote prune origin && git branch --merged develop | grep -v -e "develop" -e "master" | xargs -r git branch -d;}; f"
adc = !git lg -5 && git add -A :/ && git status && git commit
lcm = log -1 --pretty=%B
lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
dt = diff-tree --no-commit-id --name-status -r
mrg = merge --no-commit --no-ff
[color]
ui = true
[push]
default = simple
[init]
templatedir = ~/.git-templates
[help]
autocorrect = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment