每次git push時,都要需要輸入用戶名和密碼,實在是太煩。在網上找了很多資料,還是下面這個靠譜:
http://www.cnblogs.com/dudu/archive/2011/07/06/git_save_username_password.html
http://blog.csdn.net/dai_zhenliang/article/details/18653377
其實以上的設定在windows上用GIt@OSC也同樣有效,不過_netrc文件的具體內容要改爲:
machine git.oschina.net
login yourEMAIL
password yourPASSWORD
就是這麼簡單,不過程序員就是應該要有不輕易放棄任何一個微小需求的精神。