Skip to content

Instantly share code, notes, and snippets.

@pnlinh
Forked from nickytonline/.gitconfig
Created August 21, 2018 02:11
Show Gist options
  • Save pnlinh/9259d1730891ee41a8fb0cb101f204c5 to your computer and use it in GitHub Desktop.
Save pnlinh/9259d1730891ee41a8fb0cb101f204c5 to your computer and use it in GitHub Desktop.
Git Aliases
[alias]
a = add .
aliases = config --get-regexp alias
b = branch
bi = bisect
ci = commit -m
co = checkout
colast = checkout -
db = branch -D
laf = fsck --lost-found
last = log -1 HEAD
lc = diff HEAD^ HEAD
nb = checkout -b
pror = remote prune origin
pr = pull --rebase
pf = push --force-with-lease
psu = push --set-upstream
ra = rebase --abort
rc = rebase --continue
remotes = remote -v
renb = branch -m
rhh = reset --hard HEAD
rh = reset --hard
sfc = diff-tree --no-commit-id --name-only -r
s = status -s
stashes = stash list
unstash = stash pop
vc = clean -dfx
refactor = commit -m "👷‍♀️Refactor"
formatting = commit -m "💅Formatting"
comments = commit -m "📒Comments"
tests = commit -m "✅Tests"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment