早教吧作业答案频道 -->其他-->
gitpush报错求解求教育branchiscurrentlycheckedouterror:refusingtoupdatecheckedoutbranch:refs/heads/developerror:Bydefault,updatingthecurrentbranchinanon-barerepositoryerror:isdenied,becauseitwillmaketheindexand
题目详情
git push 报错 求解求教育
branch is currently checked out
error: refusing to update checked out branch: refs/heads/develop
error: By default, updating the current branch in a non-bare repository
error: is denied, because it will make the index and work tree inconsistent
error: with what you pushed, and will require 'git reset --hard' to match
error: the work tree to HEAD.
error:
error: You can set 'receive.denyCurrentBranch' configuration variable to
error: 'ignore' or 'warn' in the remote repository to allow pushing into
error: its current branch; however, this is not recommended unless you
error: arranged to update its work tree to match what you pushed in some
error: other way.
error:
error: To squelch this message and still keep the default behaviour, set
error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
branch is currently checked out
error: refusing to update checked out branch: refs/heads/develop
error: By default, updating the current branch in a non-bare repository
error: is denied, because it will make the index and work tree inconsistent
error: with what you pushed, and will require 'git reset --hard' to match
error: the work tree to HEAD.
error:
error: You can set 'receive.denyCurrentBranch' configuration variable to
error: 'ignore' or 'warn' in the remote repository to allow pushing into
error: its current branch; however, this is not recommended unless you
error: arranged to update its work tree to match what you pushed in some
error: other way.
error:
error: To squelch this message and still keep the default behaviour, set
error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
▼优质解答
答案和解析
被 push 的那个 git 库不是一个 bare 库,而是带有working tree (即代码被checkout出来的普通工作仓库) 的库,对于这种库,比方说他checkout了 test 这个branch,那么默认的,你就不能向他push test分支。
看了gitpush报错求解求教育b...的网友还看了以下:
设A是n阶矩阵A^2=E,证明r(A+E)+r(A-E)=n,的一步证明过程不懂由A^2=E,得A 2020-05-14 …
如果磁场磁通量变化,用电磁感应定律求的的是平均电动势,若电路是纯电阻电路,能否用E*E/R*T来做 2020-05-22 …
实体-联系模型(简称E-R模型)中的基本语义单位是实体和联系。E-R模型的图形表示称为E-R图。联系 2020-05-26 …
E^2*R/(R+r)^2=E^2/(R-r)^2/R+4r(某公式推导最后两行)本人只得:=E^ 2020-06-07 …
用以下英文宇母填在上a,a,a,a,a,a,b,e,e,d,e,e,e,e,e,e,f,g,g用以 2020-06-24 …
重组字母为单词e,e,r,w,he,e,r,t,he,e,se,a,sw,m,s,ir,t,p,i 2020-07-09 …
从E-R图导出关系模型时,如果两实体间的联系是m:n的,下列说法正确的是()从E-R图导出关系模型时 2020-11-02 …
把给的字母中多余的一个字母丢掉,再把正确的单词拼出来(1)s,t,e,b,a,k,e(2)r,t,a 2020-12-14 …
把给的字母中多余的一个字母丢掉,再把正确的单词拼出来.(1)s,t,e,b,a,k,e(2)r,t, 2020-12-14 …
老师讲的是用来求额定电压的还有学到求电池E和r的时候讲到E真>E测的时候除了图像法老师说的另一种方法 2020-12-26 …