Skip to content

Instantly share code, notes, and snippets.

@marcodotcastro
Last active May 15, 2020 14:19
Show Gist options
  • Save marcodotcastro/57529d5d32da81b3eb420c34e5af1a4c to your computer and use it in GitHub Desktop.
Save marcodotcastro/57529d5d32da81b3eb420c34e5af1a4c to your computer and use it in GitHub Desktop.

Alias que não existem no OhMyZsh Plugins Git

Git

Verificação se houve alteração na master

alias gocm="git fetch --all | git diff master origin/master"

Contador de Branchs Locais e Remotas

alias gctl="git branch | wc -l"
alias gctr="git branch -r | wc -l"

Deletar Branchs Locais Sem Remota

git branch --merged >/tmp/merged-branches && \ vi /tmp/merged-branches && xargs git branch -d </tmp/merged-branches

Deletar Várias Branchs

git branch | grep 'REGEX' | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment