Skip to content

Instantly share code, notes, and snippets.

@Tolluset
Last active February 15, 2022 20:49
Embed
What would you like to do?
Git alias' config
[user]
name = tolluset
email = dlqud19@gmail.com
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[credential]
helper = osxkeychain
[alias]
s = status
a = add
au = add -u
aup = add -u -p
ap = add -p
anp = !git add -N . && git add -p
b = branch
c = commit
ca = commit --amend
cm = commit -m
d = diff
ds = diff --staged
l = log
lm = log --merges
cob = checkout -b
co = checkout
com = checkout main
rb = rebase
rbi = rebase -i
rbc = rebase --continue
rba = rebase --abort
sbu = submodule update --init
sbur = submodule update --remote
sbui = submodule update --init
rs = restore
rss = restore --staged
ig = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi"
fa = fetch --all
rv = remote -v
rao = remote add origin
pn = !git branch | grep -v \\* | egrep -v \"master|main\" | xargs git branch -D
ac = !git add . && git commit -am
st = stash
stpo = stash pop
stpu = stash push
stc = stash clear
psoh = push origin HEAD
[commit]
template = ~/.gitmessage.md
[pull]
rebase = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment