October 9, 2024CentOS, DevOps, OS X, PHP Development, Server Administration, Ubuntu, Web developmentadmin 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 After this you can run : git branch