Can't see remote branch, problems with .git/config?

后端 未结 1 1767
借酒劲吻你
借酒劲吻你 2021-01-14 13:23

For some reason I can\'t see new branches that one my team has entered, I am 99% sure the branch exists as I can see it in Bitbucket\'s UI.

I have a feeling it may b

相关标签:
1条回答
  • 2021-01-14 14:10

    The fetch refspec you have in place is only fetching master, testing, uat, and release-1.9. As a result, any other branches pushed up to the remote repo, are ignored and are never brought to your local repo. The refspec on your laptop:

    +refs/heads/*:refs/remotes/origin/*
    

    says to fetch all branches from the remote repository, so any new branches would be visible to you.

    The short form is that if you want to see the new branches, then you need to use a refspec like the one above.

    BTW, the way you're creating branches looks fine. :-)

    0 讨论(0)
提交回复
热议问题