Skip to content

Instantly share code, notes, and snippets.

@GerardoHP
Last active July 3, 2023 19:35
Show Gist options
  • Save GerardoHP/858eac055e3b027c4d8b1774c099a20a to your computer and use it in GitHub Desktop.
Save GerardoHP/858eac055e3b027c4d8b1774c099a20a to your computer and use it in GitHub Desktop.
common git aliases
[core]
editor = code --new-window --wait
[alias]
egc = config --global --edit
elc = config --local --edit
esc = config --system --edit
st = status
ss = st --short
co = checkout
sw = switch
swp = sw -
swn = sw -c
swd = sw develop
ci = commit
cia = ci -am
amend = ci --all --amend
mg = merge
mgd = mg develop
rb = rebase
rbd = rb develop
pl = pull
ps = push
psn = ps --set-upstream origin
lg = log
lg1 = lg --oneline
lgf = lg --oneline --graph --decorate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment