新工作,新環境,舊電腦,舊代碼環境。
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
這個就解決了。
最終是因為版本不對,命令才不同。。。。。吆,我去。。。還有這問題,所以建議大家多試試。
