Answers for "fetch all remote branches in git"

3

fetch all branches

git branch -r | grep -v '->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
Posted by: Guest on November-05-2021
2

get all branches from remote

You can fetch all branches from all remotes like this:
git fetch --all
Posted by: Guest on July-08-2020

Code answers related to "fetch all remote branches in git"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language