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

Deixe um comentário