服務(wù)端用戶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 unexpectedlyerror: failed to push some refs to 'git@192.168.142.130:/data/git/test.git'另外,我已經(jīng)將客戶端root的公鑰上傳到服務(wù)端,并且也在連接端執(zhí)行了gitosis-init < /tmp/id_rsa.pub 也可以查看到,為什么git clone時還是需要輸入密碼? 客戶端用的root 用戶,服務(wù)端用的git用戶
幫忙看看這個是關(guān)于git push的問題?具體如下所示
慕碼人2483693
2021-07-13 15:11:30