用gitolite新建项目,clone后首次push,可能会出现: $ git push No refs in common and none specified; doing nothing. Perhaps you should specify a branch such as 'master'. fatal: The remote end hung up unexpectedly error: failed to push some refs to 'file:///xxxxxxx
error: The requested URL returned error: 401 Unauthorized while accessing https://git.oschina.net/....... 解决方法: # git --version git version 1.7.1 安装git时yum默认安装的是1.7.1,想到很多Git服务依赖会对git的版本会有依赖问题,于是想到了升级git版本. http://pkgs.repoforge.org/rpmforge-release/