User Tools

Site Tools


howto:git-list-locale-remote-branch

GIT: Comment lister les branches locales et distantes

  • git branch -a affiche les branches distantes et locales.
  • git branch -r affiche les branches distantes.
  • git branch sans options affiche les branches locales.
  • git ls-remote --heads --tags <url-depo-distant>/<depot>.git | grep -E "refs/heads/<branche>" affiche les branches distantes.
howto/git-list-locale-remote-branch.txt · Last modified: 2025/02/19 10:59 by 127.0.0.1