git branch list

C++
git branch -agit branch -a 	#all local and remote branches are listed
git branch -r 	#remote branches are listed
git branch 		#only local branches are listedgit branch -lgit branch <branchname> 
(or)
git checkout -b <branchname>$ git branch
Source

Also in C++: