Last active
July 10, 2023 08:18
-
-
Save ikushlianski/5583d89aa64907d80c28c11b7f5c32bc to your computer and use it in GitHub Desktop.
Handy git aliases (add this to .gitconfig) in home directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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