How To Show All Branches In GIT

Show All Branches, Local and Remote
Show Local Branches
Show Remote Branches
To fetch all remote branches locally
Show All Branches, Local and Remote
1 |
git branch -a |
Show Local Branches
1 |
git branch |
Show Remote Branches
1 |
git branch -r |
To fetch all remote branches locally
1 2 3 |
git branch -r | grep -v '\->' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "${remote#origin/}" "$remote"; done git fetch --all git pull --all |
Categories: How-To's, Technology Tags: All, Branch, Branches, Display, git, git branch, git branch -a, git fetch, git pull, local, remote, Show, track, view
|
No comments
Copyright © 2005-2025 Eric Michael Stone | Random Thoughts, Whims and Fancies…. Powered by WordPress