loading
Please wait while loading...
返回 git push failed to push some refs

如果你在 push git commit 的時候出現以下的錯誤

 ! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to 'git@192.168.1.X:/var/git.server/.../web'

這是由於git默認拒絕了push操作,需要進行設置,修改.git/config添加如下代碼:

    [receive]
    denyCurrentBranch = ignore

Comments
comments powered by Disqus