How can I delete a remote branch in a local git repository?

前端 未结 2 1988
闹比i
闹比i 2021-02-02 06:49

All the remote branches are visible as remotes in my local git repository after a git fetch.

How to selectively remove the remote branches in my local repository (not in

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 07:19

    git branch -r -d remote/branch

    You also need to reconfigure fetch to avoid fetching this branch again later

提交回复
热议问题