• Home
  • About
    • W x Workshop photo

      W x Workshop

      Technology, Maker, Life.

    • Learn More
    • Email
    • LinkedIn
    • Github
    • Steam
    • Weibo
  • Posts
    • All Posts
    • All Tags
  • Projects

清除本地git 显示的remotes分支

10 Nov 2015

Reading time ~1 minute

经常会出现以下图片中的状况

本地Git中常常会保留大量远端删除后本地依旧显示的 remotes 分值,十分碍眼。

pic1

使用命令:

$git remote prune origin

删除本地仓库中相比远程库中已经不存在的分支

结果如下

pic2

清爽了许多



技术git Like Tweet +1