Skip to content

Instantly share code, notes, and snippets.

@fn-alves
Created October 2, 2017 20:29
Show Gist options
  • Save fn-alves/b18bbbef19888a59881c1e0604b18a5a to your computer and use it in GitHub Desktop.
Save fn-alves/b18bbbef19888a59881c1e0604b18a5a to your computer and use it in GitHub Desktop.
Custom alias of bash windows/unix for gitz
#__Alias do git__#
git config --global alias.co checkout
git config --global alias.lg 'log --all --graph --decorate --oneline --abbrev-commit'
git config --global alias.hist 'log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
git config --global alias.cm commit
git config --global alias.ac '!git add -A && git commit'
git config --global alias.st 'status -sb'
git config --global alias.tags 'tag -l'
git config --global alias.branches 'branch -a'
git config --global alias.remotes 'remote -v'
git config --global alias.type 'cat-file -t'
git config --global alias.dump 'cat-file -p'
#__Alias do ambiente(profile)__#
alias gs='git status'
alias ga='git add'
alias gb='git branch'
alias gc='git commit'
alias gd='git diff'
alias go='git checkout'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment