Skip to content

Instantly share code, notes, and snippets.

@ikushlianski
Last active July 10, 2023 08:18
Show Gist options
  • Save ikushlianski/5583d89aa64907d80c28c11b7f5c32bc to your computer and use it in GitHub Desktop.
Save ikushlianski/5583d89aa64907d80c28c11b7f5c32bc to your computer and use it in GitHub Desktop.
Handy git aliases (add this to .gitconfig) in home directory
[alias]
co = checkout
cob = checkout -b
b = branch
bb = branch -vvv
ll = log --oneline
l = log
brd = branch -d
brD = branch -D
reom = !git fetch && git rebase origin/master
a = add
aa = add .
aca = !git add . && git commit --amend
acan = !git add . && git commit --amend --no-edit
acann = !git add . && git commit --amend --no-edit --no-verify
c = commit -m
ca = commit --amend
can = commit --amend --no-edit
cann = commit --amend --no-edit --no-verify
s = status
cp = cherry-pick
comp = !git checkout master && git pull
codp = !git checkout develop && git pull
gpom = !git pull origin master
gpod = !git pull origin develop
pcu = !git push -u origin $(git branch --show-current)
[core]
editor = nano
pager = less
[pager]
branch = false
stash = false
[pull]
rebase = false
[user]
name = Ilya Kushlianski
email = [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment