{"id":12007,"date":"2022-03-09T11:35:56","date_gmt":"2022-03-09T16:35:56","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=12007"},"modified":"2022-03-09T11:35:58","modified_gmt":"2022-03-09T16:35:58","slug":"show-or-list-all-branches-in-git","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/show-or-list-all-branches-in-git\/","title":{"rendered":"How to Show or List all Branches in git"},"content":{"rendered":"\n
See or list all branches in git.<\/p>\n\n\n\n
$ git branch -a<\/code><\/pre>\n\n\n\nIf you require only listing the remote branches from Git Bash then use this command:<\/p>\n\n\n\n
$ git branch -r<\/code><\/pre>\n\n\n\nYou may also use the show-branch command for seeing the branches and their commits as follows:<\/p>\n\n\n\n
$ git show-branch<\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,23,15,16,18],"tags":[954,193,784,424,433,449,544,591],"yoast_head":"\nHow to Show or List all Branches in git [Snippet]<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n