How can I archive git branches?

后端 未结 11 2242
無奈伤痛
無奈伤痛 2020-11-27 09:00

I have some old branches in my git repository that are no longer under active development. I would like to archive the branches so that they don\'t show up by default when r

11条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 09:27

    You could archive the branches in another repository. Not quite as elegant, but I'd say it's a viable alternative.

    git push git://yourthing.com/myproject-archive-branches.git yourbranch
    git branch -d yourbranch
    

提交回复
热议问题