Skip to content

Instantly share code, notes, and snippets.

@cseeman
Created August 22, 2022 13:57
Show Gist options
  • Save cseeman/0f9ca0544119ae49c4b76cef82031f70 to your computer and use it in GitHub Desktop.
Save cseeman/0f9ca0544119ae49c4b76cef82031f70 to your computer and use it in GitHub Desktop.
Adam's Gitconfig
[alias]
asq = !sh -c 'git rip $1^ --autosquash' -
b = branch
can = commit -v --amend --no-edit
cgf = checkout Gemfile Gemfile.lock
ci = commit -v
cia = commit -v --amend
co = checkout
cp = cherry-pick
d = diff
dm = diff --patience master
ff = merge --ff-only
fo = fetch origin
fxp = commit -v --fixup
l = formatted-log
lb = formatted-log --branches
ll = log --stat
lll = log -p
nocom = merge --no-commit
noff = merge --no-ff
oops = reset --mixed HEAD~1
pf = push --force-with-lease
po = push origin master
prb = pull --rebase
rba = rebase --abort
rbc = rebase --continue
recent = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)"
rip = rebase --interactive --rebase-merges
st = status
su = !sh -c 'git push --set-upstream origin $(git symbolic-ref --short HEAD)'
up = pull --rebase --autostash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment