git操作中出现Unlink of file ‘…’ failed. Should I try again?
git操作中出现Unlink of file ‘…’ failed. Should I try again?
Git 清理 remote 的 origin
可以你的 git 用时间久了,就会有一堆无用的 remote origin
这时,你在 一些 git GUI 上操作 push, 或是 check out 时,总会显示一堆无用的 分支
如下图是 SourceTree 下的 远程->origin->一堆分支
怎么清理呢?
新建一个:git_origin_prune.bat
内容如下:
rem jave.lin 2021/07/21
@echo remote orign --prune start
git remote update origin --prune
@echo remote orign --prune end
然后执行一下即可