Skip to content

Instantly share code, notes, and snippets.

@tatarianBarbarian
Created April 26, 2019 13:20
Show Gist options
  • Save tatarianBarbarian/72996f900a0de83e70808535f3b48cc3 to your computer and use it in GitHub Desktop.
Save tatarianBarbarian/72996f900a0de83e70808535f3b48cc3 to your computer and use it in GitHub Desktop.
Git aliases
[alias]
co = checkout
cob = checkout -b
ci = commit -m
st = status
br = branch
cbr = !git br | grep '*' | cut -d ' ' -f2
del = branch -D
pu = pull
pux = !git push origin $(git cbr)
gom = "checkout master"
gop = "checkout production"
freshp = !git gop && git pu
freshm = !git gom && git pu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment