How to delete remotes/origin/{branch}?

前端 未结 3 1574
刺人心
刺人心 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.

    0 讨论(0)
  • 2021-02-01 17:01

    git push origin :[branch-name].

    Source: http://progit.org/book/ch3-5.html

    0 讨论(0)
  • 2021-02-01 17:03

    I suggest you have a look at http://www.git-tower.com/

    It's a great GUI for GIT

    0 讨论(0)
提交回复
热议问题