Skip to content

Instantly share code, notes, and snippets.

@chrispomeroyhale
Last active August 19, 2022 16:39
Show Gist options
  • Save chrispomeroyhale/07fd8e795711d201e5593cf1161863a2 to your computer and use it in GitHub Desktop.
Save chrispomeroyhale/07fd8e795711d201e5593cf1161863a2 to your computer and use it in GitHub Desktop.
[alias]
ft = fetch
pl = pull
fp = push -f
pd = push --delete
co = checkout
ct = commit
cm = commit -m
ca = commit --amend
# Logging
ls = log
lg = log --graph --oneline
# Staging
ss = status -s
si = add -i
sa = add
# Diff
ds = diff --staged
du = diff
# Resets
rs = reset --soft
rh = reset --hard
# Branches
bs = branch
ba = branch
bd = branch -D
bc = "!git ba $1; git co"
# Tags
ta = tag
ts = tag
td = tag -d
# Stashing
hl = stash list
hs = stash show
hd = stash show -p
hm = stash save
# Merging
mt = mergetool --tool kdiff3
mg = merge
ma = merge --abort
# Rebasing
ra = rebase --abort
rc = rebase --continue
rs = rebase --skip
ri = rebase -i
ro = rebase --onto # TARGET_BRANCH HEAD~NUMBER NEW_BRANCH
pr = pull --rebase=interactive origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment