服务端用户git init --bare初始化了仓库,客户端可以正常clone。但是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 'git@192.168.142.130:/data/git/test.git'
另外,我已经将客户端root的公钥上传到服务端,并且也在连接端执行了gitosis-init < /tmp/id_rsa.pub 也可以查看到,为什么git clone时还是需要输入密码? 客户端用的root 用户,服务端用的git用户
慕斯709654