update local list of branches in git -


i m trying update local list of branches. can see 3 while remote 11. tried this solution prune command , despite config file updated when press git branch -a same result before (the remote branches red letters , in first place 'remotes/origin/head->origin/master'.

try explicitly specify want fetch remote branches:

git fetch origin '+refs/heads/*:refs/heads/*'

to make permanent setting do:

git config remote.origin.fetch '+refs/heads/*:refs/heads/*'

local copy of branch created when check out. if have remotes/origin/branchx have local branchx want git checkout branchx


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -