远程仓库中有不用的分支,想在本地进行删除

输入命令:

git push origin --delete <feature/yuh_add_authority>

feature/yuh_add_authority --- 为远程仓库分支名

然后报错:

zsh: parse error near `\n'

解决办法:分支名不加<>

git push origin --delete feature/yuh_add_authority

成功删除远程仓库分支:

在这里插入图片描述

参考连接:

zsh: parse error near `\n’ when Adding AWS keys as environment variables

(完)

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐