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
Post a Comment