"remote:error: refushing to delete the current branch:refs/heads/BRANCH to git@github.com:ACCOUNT/SPACE.git ![remote rejected] BRANCH (deletion of the current branch prohibited) error: failed to push some refs to 'git@github.com:ACCOUNT/SPACE.git'" 解决方法: 在github.com的管理员页面,切换当前分支,再次运行删除分支命令即可.
"Permission denied to SPACE.git denied to ACCOUNT" 解决方法:
ssh-keygen -t rsa -C "email@email.com"
复制~/.ssh/id_rsa.pub内容
打开githu.com->账户设置->SSH公钥->添加新的公钥,保存
ssh-add 完
"FATAL ERROR: Disconnected: No supported authentication methods available.fatal: The remote end hung up unexpectedly." 解决方法:
"To git@github.com:7color/7color.github.com.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'git@github.com:7color/7color.github.com.git' To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes (e.g. 'git pull') before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details." 解决方法: