2017-03-20 55 views
0

我們有一個登臺服務器,此刻,當我到達終端服務器並執行git pull時,一切正常。當我的同事試用時,他被要求輸入我的密碼。我該如何改變這種情況,以便每個人都能夠在該服務器上執行拉取操作,而不僅僅是我?git pull terminal allow everyone

+1

http://serverfault.com/questions/26954/how-do-i-share-a-git-repository-with-multiple-users-on-a-machine –

回答

0

使用ssh。
創建自己的密鑰對like this
然後將公鑰添加到您的到位桶賬號
使用git pull各自的SSH一個
更換您的遠程鏈接現在將不再要求輸入密碼

0

試試這個代碼通過它寫在終端

git config receive.denyCurrentBranch ignore