Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • branch

Git - List branches on machine

Display branches of current git repository.

1
562
  • Share on Facebook
  • Share on Google+
  • Share on Twitter

Show local

Lists local branches

git branch

Notes

last update: Oct. 26, 2014

0
490
  • Share on Facebook
  • Share on Google+
  • Share on Twitter

List all branches

List all branches (local and remote) in current repository.

git branch -a

Notes

last update: Oct. 26, 2014

0
529
  • Share on Facebook
  • Share on Google+
  • Share on Twitter

List remote branches

List remote branches only

git branch -r

Notes

last update: Oct. 26, 2014

Advertisement

This project is hosted on DigitalOcean, try it and support us

Related concept

  • Remove remote branch
  • List branches that contain specific commit
  • Rename git branch locally
  • Merge branch into current branch
  • Upload local branch to remote
  • Create local branch

Random task

  • Set computer name
  • Random integer in range
  • Transform scale
  • Loop until condition is true
  • Break out of loop
  • Blog
  • About
  • License