Arquivo da categoria: Git

Git – Remover um branch remoto

Como deletar um branch em um servidor remoto?

git push origin :branch

Etiquetado

git – Listar branches remotos

Quando executo git branch -r, ele lista apenas os branches remotos que eu dei checkout localmente. Como posso obter uma lista dos que não tenho rastreado localmente?

git ls-remote <remote-name>

Por exemplo:

git ls-remote origin

Fonte

http://stackoverflow.com/questions/3471827/how-do-i-list-all-remote-branches-in-git-1-7

Etiquetado

Git – Como deletar uma tag em um repositório remoto

Como deletar uma tag em um repositório Git remoto?

Suponha que você possui uma tag chamada ‘checkpoint’, então você deve proceder da seguinte forma:

git tag -d checkpoint
git push origin :refs/tags/checkpoint

Isto irá remover ‘checkpoint’ do seu repositório ‘origin’.

Referências

http://nathanhoad.net/how-to-delete-a-remote-git-tag

 

Etiquetado , ,

Git – error: The branch ‘experiment’ is not fully merged

Para visualizar as diferenças que há entre os branches, execute o seguinte comando:

git log --graph --left-right --cherry-pick --oneline master...experiment

Referência

http://stackoverflow.com/questions/7548926/git-and-the-branch-x-is-not-fully-merged-error