jaco
Me gustaría enumerar todas las confirmaciones en todas las sucursales remotas en mi repositorio.
Solo quiero el SHA1 para cada confirmación.
Prueba esto –
git registro –ramas=*
-
Esto filtra mucho mejor para mis necesidades porque puedo excluir a otros autores y fusiones.
–David Mann
16 de noviembre de 2015 a las 16:17
-
Para el registro @DavidMann: puede agregar opciones para autores y fusionarse con rev-list también: git rev-list –remotes –author=”th3morg*” –date=iso –pretty –branches=”* ” –sin fusiones
– th3morg
22 de febrero de 2017 a las 18:19
-
¿Puedo saber usando la bandera?
--all
en este comando significa lo mismo que--branches=*
?–Rajesh Swarnkar
5 de enero a las 9:13
marca longair
Lo siguiente debería hacer lo que quieras:
git rev-list --remotes
los documentación para el --remotes
opción dice:
–controles remotos[=<pattern>]
Pretenda como si todas las referencias en refs/remotes estuvieran enumeradas en la línea de comando como
. Si se proporciona , limite las ramas de seguimiento remoto a las que coincidan con el glob de shell dado. Si el patrón carece de ?, o [, / at the end is implied.
As a point of pedantry, these are “remote-tracking branches” rather than “remote branches” – the latter is a somewhat ambiguous term in git, since you might be referring to a branch in remote repository or a remote-tracking branch (which is like a cache of the state of the branch in the remote repository).
-
git rev-list --all --remotes --pretty
– Julio MarinsApr 10, 2017 at 15:21
Simple:
git rev-list --all --remotes
I hope that helps
Of course, drop the –all if you just want to list revisions in remotes (which 90% of the time will overlap those in your local branches)
-
--all
will also include local branches, though.– Mark LongairAug 22, 2011 at 15:30
-
true. A matter of interpretation really.
– seheAug 22, 2011 at 15:31
Parmatma
If you want refrences with it use this–
git show-ref
For those of you who wants to copy/paste it from a GUI to, say Excel.
Sourcetree has a History function where you can see every commit from all branches, with description, time and author