【报错处理】处理git报错,remote ref does not exist

报错

error: unable to delete 'dev_feature_XXXX_20200115_temp': remote ref does not exist
error: failed to push some refs to 'https://git.XXXX.com/wangxiao_xesbiz_fe_activity/XXXX.git'

原因

远程分支不存在

处理

修剪本地远程分支缓存信息

git fetch --prune origin

或者

git fetch -p origin

 

你可能感兴趣的:(【Web前端问题】,git,error,remote,ref)