Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

清除所有远程冗余分支 #70

Open
wuweijia opened this issue Sep 10, 2019 · 0 comments
Open

清除所有远程冗余分支 #70

wuweijia opened this issue Sep 10, 2019 · 0 comments

Comments

@wuweijia
Copy link
Owner

当我们在终端执行 git ck 'branch' 的时候经常会补全一些很久没有用过的分支出来
如图:
image
我们怎么清除这些本地已经删除,但是远程还存在的冗余分支呢。
git remote show origin 先查看所有分支情况

image

有两个关键提示 tracked 跟踪,追踪(track的过去式) stale 陈腐的;不新鲜的
后面跟了一个提示信息 use 'git remote prune' to remove

执行

git remote prune origin

@wuweijia wuweijia self-assigned this Sep 10, 2019
@wuweijia wuweijia removed the 杂症 label Nov 11, 2021
@wuweijia wuweijia removed their assignment Sep 29, 2022
@wuweijia wuweijia added 工作 工作做完不的 and removed 项目工程问题 工作 工作做完不的 labels Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant