How to delete remotes/origin/{branch}?

前端 未结 3 1573
刺人心
刺人心 2021-02-01 16:17

How do you delete a remotes/origin/{branch}?

3条回答
  •  感情败类
    2021-02-01 16:55

    use: git remote prune origin

    or use git remote prune origin --dry-run to preview what branches will be removed.

    As in git help remote

    prune
    Deletes all stale remote-tracking branches under . These stale branches have already been removed from the remote repository referenced by , but are still locally available in "remotes/".

    With --dry-run option, report what branches will be pruned, but do not actually prune them.

提交回复
热议问题