8

修剪本地的远程分支

 4 years ago
source link: https://mednoter.com/prune-branch.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

修剪本地的远程分支

prune branch

有的时候,我们已经在 origin 将某个分支合并至 master,并在 origin 上删除了它。但是本地的仓库不会自动更新,依然保存着这些远程分支的「快照」,每次查看分支时都特别凌乱。

pruned

可以通过这条命令来修剪本地的远程分支镜像,砍掉已经不存在的远程分支镜像。

git remote prune origin

pruned

prune  
*[pru:n]  
n. 洋李, 李子干, 深紫红色, 傻瓜  
vt. 修剪, 砍掉, 删除  
吕小荣
30 August 2014

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK