Skip to content

Instantly share code, notes, and snippets.

@pathob
Created February 5, 2024 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pathob/e7c93a0ec4966a4f65bb5d0558af6ed1 to your computer and use it in GitHub Desktop.
Save pathob/e7c93a0ec4966a4f65bb5d0558af6ed1 to your computer and use it in GitHub Desktop.
[init]
defaultBranch = main
[push]
autoSetupRemote = true
[alias]
a = add
aa = add .
ap = add --patch
c = commit
cm = commit -m
ca = commit --amend
can = commit --amend --no-edit
co = checkout
cob = checkout -b
cp = cherry-pick
d = diff
dc = diff --cached
f = fetch
fp = fetch --prune
lol = log --oneline
p = push
pf = push --force-with-lease
pl = pull
pu = push -u
pr = pull --rebase
r = rebase
ri = rebase -i
rc = rebase --continue
ra = rebase --abort
rs = rebase --skip
rst = restore --staged
rmc = rm --cached
s = status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment