Can git permanently ignore a remote branch?

后端 未结 3 687
时光取名叫无心
时光取名叫无心 2020-12-07 00:11

I\'m using the Pages feature of GitHub. This works by putting the published HTML in a branch called gh-pages. I have two separate working directories, one for t

3条回答
  •  庸人自扰
    2020-12-07 01:09

    I just hit the same problem. I was interested in one branch from 'bob', but he had many branches cluttering up my git branch -a output.

    I did this:

    rm .git/refs/remotes/bob/{next,master,maint}
    

    and the branches were gone. A git fetch might restore them though, but I don't intend to fetch from bob regularly.

提交回复
热议问题