Skip to content

Instantly share code, notes, and snippets.

@aosalias
Created November 7, 2016 16:44
Show Gist options
  • Save aosalias/4e66c4a5a6786ee99fb73bf3c35a6c08 to your computer and use it in GitHub Desktop.
Save aosalias/4e66c4a5a6786ee99fb73bf3c35a6c08 to your computer and use it in GitHub Desktop.
Git Dot File
[alias]
co = checkout
ci = commit
cim = commit --amend
cp = cherry-pick
cpc = cherry-pick --continue
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
rc = rebase --continue
ra = rebase --abort
unfuck = !git reset --hard origin/$(git br)
suc = !git branch --set-upstream-to=origin/$(git br) $(git br)
br = !git rev-parse --abbrev-ref HEAD
release-notes = shortlog -p master --not origin/production
[github]
user = aosalias
email = [email protected]
[user]
email = [email protected]
name = Adam Olsen
[push]
default = current
[pull]
default = current
[core]
excludesfile = ~/.gitignore
[rebase]
instructionFormat = (%an) %s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment