Skip to content

Instantly share code, notes, and snippets.

@damianopetrungaro
Last active September 12, 2021 18:41
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damianopetrungaro/8e00c9a4802c5159f942b42f3957acb8 to your computer and use it in GitHub Desktop.
Save damianopetrungaro/8e00c9a4802c5159f942b42f3957acb8 to your computer and use it in GitHub Desktop.
Git aliases
# Need HUB Download here -> https://hub.github.com/
# Need commitizen and cz-conventional-changelog Download here -> http://slides.com/damianopetrungaro/working-with-git/#/0/17
```
[alias]
co = checkout
cob = checkout -b
coo = !git fetch && git checkout
ft = fetch
ftp = fetch -p
br = branch
brd = branch -d
brD = branch -D
rename = branch -m
merged = branch --merged
no-merged = branch --no-merged
dmerged = "git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
st = status
aa = add -A .
cm = commit -m
cma = !git add -A . && git commit -m
cza = !git add -A . && git cz
cs = commit --amend --no-edit
csa = !git add -A . && git commit --amend --no-edit
clean = fetch origin --prune
cp = cherry-pick
amend = commit --amend -m
develop = !git checkout develop && git pull origin develop
master = !git checkout master && git pull origin
po = push origin
pod = push origin develop
pom = push origin master
plo = pull origin
plod = pull origin develop
plom = pull origin master
unstage = reset --soft HEAD^
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
f = "!git ls-files | grep -i"
gr = grep -Ii
la = "!git config -l | grep alias | cut -c 7-"
rb = rebase
rbd = rebase develop
rbm = rebase master
pr = pull-request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment