Windows系統下如何刪除已經保存的賬號密碼

Windows系統下如何刪除已經保存的賬號密碼:
https://blog.csdn.net/ouyang_peng/article/details/80983996

以管理員身份運行gitbash.exe文件
使用 git config --system --unset credential.helper 方法 清除保存好的賬號密碼
git config --system --unset credential.helper
之後再進行git操作時,彈出用戶名密碼窗口,輸入即可

讓git for windows記住密碼
store
執行這個命令git config --global credential.helper store

添加Git Config 內容
進入git bash終端, 輸入如下命令:
git config --global credential.helper store
執行完後查看%HOME%目錄下的.gitconfig文件,會多了一項:
[credential]
helper = store
重新開啓git bash會發現git push時不用再輸入用戶名和密碼

檢查命令是否成功

$ git config -l | grep credential
credential.helper=store

git config --global credential.helper store

.gitconfig 文件中添加 [credential] helper = store 或者在git bash 中執行 git config --global credential.helper store

發佈了33 篇原創文章 · 獲贊 6 · 訪問量 20萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章