git 設置存儲用戶名與密碼


新工作,新環境,舊電腦,舊代碼環境。

git是沒有記錄密碼用戶名的,於是乎只能自己設置,在命令行設置咋設置,代碼如下。。

git config --global user.name "myusername"
git config --global user.email "myusername@myemaildomain.com"
git config --global credential.helper cache


但是最后一行 cache不是windows 下的,於是乎運行總是報錯,
git: 'credential-cache' is not a git command. See 'get --help'.
對就它,老報這個問題,咋整,要用win下邊的,

有人用:
git config --global credential.helper winstore

用這個解決問題了,我的還是不行。就試了下邊這個

git config --global credential.helper wincred


這個就解決了。


最終是因為版本不對,命令才不同。。。。。吆,我去。。。還有這問題,所以建議大家多試試。



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM