做git push时,如果远程库是非bare库,本地更新的内容无法在远程得到更新,以下是解决方案:
远程库上配置:
git config --local receive.denyCurrentBranch updateInstead
远程库上配置:
git config --local receive.denyCurrentBranch updateInstead