Skip to content

Instantly share code, notes, and snippets.

@SegFaultAX
Last active October 3, 2016 23:25
Show Gist options
  • Save SegFaultAX/b151d191d1c3e9c5955b8df50005dc23 to your computer and use it in GitHub Desktop.
Save SegFaultAX/b151d191d1c3e9c5955b8df50005dc23 to your computer and use it in GitHub Desktop.
gitconfig
[user]
name = <fullname>
email = <email>
signingkey = <key>
[alias]
st = status
co = checkout
up = !git pull --ff-only --all -p && git submodule update --init --recursive
fup = !git fetch --multiple upstream origin
ci = commit
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
newest = !git checkout -q master && git fetch upstream && git merge --ff-only upstream/master && git push origin master
root = !git rev-parse --show-toplevel
goroot = !cd $(git root)
recent = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
[core]
editor = /usr/local/bin/nvim
pager = less -XF
[push]
default = simple
[rerere]
enabled = false
[diff]
tool = meld
[commit]
gpgsign = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment