Remote branch is not showing up in “git branch -r”

前端 未结 5 1252
野性不改
野性不改 2020-12-07 11:17

I have been pushing to a remote Bitbucket repository and recently a colleague has pushed a new branch he created to the same repository.

I\'m trying to fetch the cha

5条回答
  •  情歌与酒
    2020-12-07 12:00

    The remote section also specifies fetch rules. You could add something like this into it to fetch all branches from the remote:

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

    (Or replace origin with bitbucket.)

    Please read about it here: 10.5 Git Internals - The Refspec

提交回复
热议问题