用Git的時候每次都要輸入帳號密碼實在是很麻煩

後來找到了這個方法

可以將密碼存在http中

Example:

git config remote.origin.url https://you:password@github.com/you/example.git

假設我的 帳號/密碼 為 Willy/123456 代入後如下

git config remote.origin.url https://Willy:123456d@github.com/Willy/example.git


參考資料:
http://stackoverflow.com/questions/5343068/is-there-a-way-to-skip-password-typing-when-using-https-on-github

創作者介紹
創作者 Willy's Fish教學筆記』 的頭像
顏澤偉

Willy's Fish教學筆記』

顏澤偉 發表在 痞客邦 留言(0) 人氣( 244 )