Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (67 sloc) 2.38 KB
# This is Git's per-user configuration file.
[user]
name = butlerx
email = butlerx@notthe.cloud
signingkey = C61F9E960956795F3DB41361B37CA765BAA89170
[includeIf "gitdir:~/projects/ihs/"]
path = ~/projects/ihs/.gitconfig
[push]
default = simple
[github]
user = butlerx
[alias]
yolo = !git commit -m \"$(curl -s whatthecommit.com/index.txt)\"
lol = log --oneline --graph --decorate --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
today = log --since=00:00:00 --all --no-merges --oneline --author=butlerx@notthe.cloud
recap = log --all --oneline --no-merges --author=butlerx@notthe.cloud
overview = log --all --oneline --no-merges
recent = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)"
grpah = log --graph --all --decorate --stat --date=iso
amend = commit --amend --no-edit
undo = reset HEAD~1 --mixed
a = add
ap = add -p
c = commit --verbose
ca = commit -a --verbose
cm = commit -m
cam = commit -a -m
m = commit --amend --verbose
d = diff
ds = diff --stat
dc = diff --cached
s = status -s
co = checkout
cob = checkout -b
# list branches sorted by last modified
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
# list aliases
la = "!git config -l | grep alias | cut -c 7-"
up = !git fetch origin && git rebase origin/master
raf = remote add fork
rao = remote add origin
ac = !git add . && git commit -am
pushitgood = push -u origin --all
fuckpush = push -u fork --all
forkpush = push -u fork
forcepush = push --force
cp = cherry-pick
st = status -s
cl = clone
ec = config --global -e
# for github remotes
pr = "!f() { git fetch -fu ${2:-$(git remote |grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
# for bitbucket/stash remotes
spr = "!f() { git fetch -fu ${2:-$(git remote |grep ^upstream || echo origin)} refs/pull-requests/$1/from:pr/$1 && git checkout pr/$1; }; f"
[core]
autocrlf = input
[fetch]
prune = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
[commit]
gpgsign = true
[gpg]
program = gpg2
You can’t perform that action at this time.