Somehow one of my repositories refuses to fetch new branches:
C:\\temp>git fetch --all
Fetching origin
C:\\temp>git branch -a
* develop
remotes/origin
you can check your branch cat .git/config in terminal
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
url = { git remote url }
fetch = +refs/heads/develop:refs/remotes/origin
[branch "develop"]
remote = origin
merge = refs/heads/develop
and git remote update but not update remote branch.
you will replace origin fetch
first, check remote fetch git config --get remote.origin.fetch
+refs/heads/develop:refs/remotes/origin/develop
second, unset remote fetch use git config --unset-all remote.origin.fetch
and add another git config --add remote.origin.fetch +refs/heads/\*:refs/remotes/origin/feature/\*
then, you can check replace remote git config --get remote.origin.fetch
+refs/heads/*:refs/remotes/origin/*