git 操作远程 本地缓存删除

更新时删除本地的缓存

删除本地分支

git branch -d the_local_branch

删除远程分支  

git push origin :the_remote_branch

在远程分支被修改之后,其他的机器,直接 git fetch无法得到删除的消息,会有缓存,需要git fetch -p ( -p --prune 修剪 删除 )
原文地址:https://www.cnblogs.com/examine/p/5454058.html