我正在尝试使用git删除远程分支:
rpinson@rpinson:~/dev/charismanie$ git remote show origin
* remote origin
Fetch URL: [email protected]:raphink/Charismanie.git
Push URL: [email protected]:raphink/Charismanie.git
HEAD branch: xetex
Remote branches:
master tracked
xetex tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)
rpinson@rpinson:~/dev/charismanie$ git push origin :xetex
remote: error: refusing to delete the current branch: refs/heads/xetex
To [email protected]:raphink/Charismanie.git
! [remote rejected] xetex (deletion of the current branch prohibited)
error: failed to push some refs to '[email protected]:raphink/Charismanie.git'
有什么方法可以从“远程分支”列表中删除此分支,以便可以将其删除?
该分支在github上被设置为默认,以防止其被删除。
在github上,我转到了项目中的“管理”,将默认分支重置为“ master”,并且能够删除xetex分支。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句