Skip to content

Instantly share code, notes, and snippets.

@artembelik
Last active February 27, 2024 19:04
Show Gist options
  • Save artembelik/1f35b58bf5043ac5a8cb7da55d1af3d8 to your computer and use it in GitHub Desktop.
Save artembelik/1f35b58bf5043ac5a8cb7da55d1af3d8 to your computer and use it in GitHub Desktop.
My .gitconfig aliases
[user]
name = <NAME>
email = <EMAIL>
[alias]
# checkout
co = checkout
cob = co -b
com = co master
cod = co develop
# commit
c = commit
cm = c --message
ca = c --amend --no-edit
# status
st = status
# branch
br = branch
# fetch
ft = fetch origin master
# rebase
rb = rebase
rbm = rb origin master
rbd = rb origin develop
rba = rb --abort
rbc = rb --continue
rbi = rb --interactive
rbs = rb --skip
# cherry-pick
cp = cherry-pick
cpa = cp --abort
cpc = cp --continue
cpn = cp --no-commit
[push]
default = current
[init]
defaultBranch = master
[pull]
rebase = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment