Skip to content

Instantly share code, notes, and snippets.

@ZeevKatz
Last active September 26, 2020 14:05
Show Gist options
  • Save ZeevKatz/6ebae8d927cef30395cc4c1d1d93763c to your computer and use it in GitHub Desktop.
Save ZeevKatz/6ebae8d927cef30395cc4c1d1d93763c to your computer and use it in GitHub Desktop.
st = status
s = switch
cp = cherry-pick
cpc = cherry-pick --continue
cps = cherry-pick --skip
cpa = cherry-pick --abort
rbc = rebase --continue
rbs = rebase --skip
rba = rebase --abort
bm = "!f() { git branch -m "$1"; }; f"
fua = "!f() { git add . && git commit --fixup="$1"; }; f"
fu = "!f() { git commit --fixup="$1"; }; f"
ir = "!f() { git rebase -i head~"$1"; }; f"
rs = "!f() { git restore --staged "$1"; }; f"
ras = restore . --staged
puh = push -u origin head
wip = commit -am WIP --no-verify
fr = "!f() { git fetch && git rebase origin/"$1"; }; f"
amend = commit --amend --no-edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment