亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Git Push錯誤:拒絕更新簽出的分支

Git Push錯誤:拒絕更新簽出的分支

Git
汪汪一只貓 2019-10-15 15:57:00
我已經解決了一些合并沖突,已提交然后嘗試推送更改,并收到以下錯誤:c:\Program Files (x86)\Git\bin\git.exe push --recurse-submodules=check "origin" master:masterDoneremote: error: refusing to update checked out branch: refs/heads/masterremote: error: By default, updating the current branch in a non-bare repositoryremote: error: is denied, because it will make the index and work tree inconsistentremote: error: with what you pushed, and will require 'git reset --hard' to matchremote: error: the work tree to HEAD.remote: error: remote: error: You can set 'receive.denyCurrentBranch' configuration variable toremote: error: 'ignore' or 'warn' in the remote repository to allow pushing intoremote: error: its current branch; however, this is not recommended unless youremote: error: arranged to update its work tree to match what you pushed in someremote: error: other way.remote: error: remote: error: To squelch this message and still keep the default behaviour, setremote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.To C:/Development/GIT_Repo/Project ! [remote rejected] master -> master (branch is currently checked out)error: failed to push some refs to 'C:/Development/GIT_Repo/Project'有誰知道是什么原因導致此錯誤?
查看完整描述

3 回答

  • 3 回答
  • 0 關注
  • 1209 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號