1.在根目錄下輸入
git config --global credential.helper store
2.再進行git pull或者git push的時候,輸入一次,后面就不用再輸入了
3.刪除用戶名和密碼
git config --system --unset credential.helper
之后再進行git操作時,彈出用戶名密碼窗口,輸入即可
這個不行的 話 在文件夾 空白右鍵 打開git的設置 找到Git 編輯.git/config
在彈出的gitconfig文件里刪除如下兩行,然后保存。
[credential]
helper = manager