前幾個月有個程式,因為需要多人做設定檔
所以就使用bitbucket來管理
在樹莓派一直遇到要打帳號、密碼
其怪,私鑰那些我都要試過阿
結果Google一下,發現這篇
Git on Bitbucket: Always asked for password, even after uploading my public SSH key - Stack Overflow
預設是https情況下會問密碼
在.git/config把網址改成ssh網址確實可運做了ssh://git@bitbucket.org/userName/repoName.git
1 | As explained here, if you clone with SSH url, you don't need to enter username / password each time you push / pull. Check above answer by @manojlds |
網路上有一個解法,http://username:password@bitbucket.org/...
但感覺不安全….