Skip to content

Instantly share code, notes, and snippets.

@kgundula
Last active March 11, 2020 09:56
Show Gist options
  • Save kgundula/fa8d70ffbe65ebee7537a49d0e5e2ae9 to your computer and use it in GitHub Desktop.
Save kgundula/fa8d70ffbe65ebee7537a49d0e5e2ae9 to your computer and use it in GitHub Desktop.
Add git : pull rebase with autostash alias.
[alias]
cu = !git branch --merged | egrep -v \"(^\\*|master|develop|release|patch)\" | xargs git branch -d
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset %an -%C(yellow)%d%Creset %s %Cgreen(%cr)'
[alias]
amend = !git add -A && git commit --amend --no-edit
p = !git push origin $(git rev-parse --abbrev-ref HEAD)
c = "!git add -A && git commit -m "
cc = "!git commit --amend -m "
co = !git checkout
[alias]
up = pull --rebase --autostash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment