git push時候總提示輸入賬號密碼 - 免除設置

linux下

在~/下, touch創建文件 .git-credentials, 用vim編輯此文件,輸入內容格式:

touch .git-credentials

vim .git-credentials

https://{username}:{password}@github.com


2. 在終端下執行  git config --global credential.helper store

3. 可以看到~/.gitconfig文件,會多了一項:

[credential]

    helper = store

更多:

windows下: http://www.cnblogs.com/ballwql/p/3462104.html



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章