轉載自:http://www.uhdesk.com/?p=12
如紅色部份所示,clone時候就添加上用戶名,隨后會提示你輸入密碼,就OK了
git clone https://username@github.com/blah/blahblah.git
如果你想后面的操作也不再輸入密碼了,你可以在地址中加上密碼
git clone https://username:password@github.com/blah/blahblah.git
如果你已clone了,也能夠通太重設地址的方式
git remote set-url origin https://username:password@github.com/blah/blahblah.git