Skip to content

Instantly share code, notes, and snippets.

@sun
Created March 2, 2018 08:39
Show Gist options
  • Save sun/cca4a9589a508e47865014189fe64b6e to your computer and use it in GitHub Desktop.
Save sun/cca4a9589a508e47865014189fe64b6e to your computer and use it in GitHub Desktop.
netzstrategen git config
[user]
name = Firstname Lastname
email = firstname@netzstrategen.com
[core]
autocrlf = false
safecrlf = false
ignorecase = false
excludesfile = ~/.gitignore
[fetch]
prune = true
[pull]
ff = only
[rebase]
autosquash = true
[push]
default = current
[color]
ui = true
[diff]
renames = copies
renamelimit = 10000
[alias]
co = checkout
reha = reset --hard
a = apply --index
ar = apply --index --reject
p = format-patch --stdout
# Fast-forward to already fetched remote branch tip.
ff = merge --ff-only @{u}
# List all merged/unmerged branches.
# Defaults to HEAD. Pass a branch name to check a particular.
unmerged = branch -a --no-merged
merged = branch -a --merged
# Show fancy commit log graph.
# @see http://blog.kfish.org/2010/04/git-lola.html
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment