Skip to content

Instantly share code, notes, and snippets.

@marylly
Last active February 8, 2017 13:20
Show Gist options
  • Save marylly/465bfd065d9151a6ac7da04fe4d6a4dc to your computer and use it in GitHub Desktop.
Save marylly/465bfd065d9151a6ac7da04fe4d6a4dc to your computer and use it in GitHub Desktop.
// Exibe os commits da branch com as devidas tags
git show --summary --oneline --decorate --tags
// Remover uma tag de uma branch
git tag -d <tagname>
git push origin :refs/tags/<tagname>
//Incluir ou atualizar uma tag de um commit
git tag <tagname> <commit> -f
git push origin <tagname>
//Criação de Branch a partir de uma existente
git checkout <branch_existente>
git checkout -b <nova_branch>
//Visualização do conteúdo de um stash antes do push
git diff --stat --cached <remote>/<branch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment