Skip to content

Instantly share code, notes, and snippets.

@aosalias
Last active July 17, 2017 16:29
Show Gist options
  • Select an option

  • Save aosalias/4af19e53f7bf28fdea9bdf01ada440e0 to your computer and use it in GitHub Desktop.

Select an option

Save aosalias/4af19e53f7bf28fdea9bdf01ada440e0 to your computer and use it in GitHub Desktop.
git aliases
[alias]
co = checkout
com = checkout master
ci = commit
cim = commit --amend
wip = !git add . && git ci -m 'wip'
cp = cherry-pick
cpc = cherry-pick --continue
undo = reset HEAD~1
st = status
ec = config --global -e
di = diff -U8 -w
dic = diff --cached -U8 -w
dio = !git diff -U8 -w origin/$(git br)
dim = diff -w origin/master
up = !git fetch && git pull --rebase --prune
sk = stash --keep-index
cob = checkout -b
com = checkout master
ri = rebase -i
rim = rebase -i master
rc = rebase --continue
ra = rebase --abort
rem = rebase master
rom = rebase origin/master
unfuck = !git reset --hard origin/$(git br)
suc = !git branch --set-upstream-to=origin/$(git br) $(git br)
sum = !git branch --set-upstream-to=origin/master $(git br)
br = !git rev-parse --abbrev-ref HEAD
release-notes = shortlog -p master --not origin/production
slog = !git log --format='format:%h %cn %s'
[github]
user = aosalias
email = [email protected]
[user]
email = [email protected]
name = Adam Olsen
[push]
default = current
[pull]
default = current
[core]
excludesfile = ~/.gitignore
attributesFile = ~/.gitattributes
[rebase]
instructionFormat = (%an) %s
[color]
ui=true
[diff "bz2"]
binary = true
textconv = /bin/bzcat
[diff "gzip"]
binary = true
textconv = /usr/bin/gzip
[diff "tar"]
binary = true
textconv = tar --to-stdout -xf
[diff "tar-bz2"]
binary = true
textconv = tar --to-stdout -xjf
[diff "zip"]
binary = true
textconv = unzip -p
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment