git記住密碼

2021-08-21 00:05:58 字數 647 閱讀 9664

是不是受夠了http方式每次輸入使用者名稱和密碼?

好吧下面說說解決這個問題的方法:

方法一:git bash輸入命令 git config --global credential.helper store

ok,回車,這個時候已經記住了密碼,就是這樣,沒了。

可能下一次還要密碼的情況,沒關係,在輸入一次,因為這可能是最後一次。

如果想自己設定時間,可以這樣做:

git config credential.helper 'cache --timeout=3600'

這樣就設定乙個小時之後失效。

方法二:手動配置

在c:\users\使用者資料夾下找到它,每個系統可能路徑不一樣,相信你可以找到。window系統可以通過直接搜尋 gitconfig ,找到直接txt文字打卡就行。

ok,藍色部分,新增上儲存就行 ,這是藍色部分**

[credential] 

helper = store 

Git記住密碼

每次提交 都要輸入使用者名稱密碼,十分麻煩,教大家怎麼讓git記住密碼。永久記住密碼git config global credential.helper store 會在使用者主目錄的.gitconfig檔案中生成下面的配置。credential helper store 如果沒有 global,...

git 記住密碼

git bash 進入.git資料夾 git config global credential.helper storegit config credential.helper store global 引數為全域性設定,可不加 設定後,第一次拉取或推送需要密碼,之後就不要了 重新裝git後 沒輸密...

git記住賬號密碼

涉及到記住密碼的方式,只適用於http s 方式,記住密碼的幾種方式 https 方式每次都要輸入密碼,按照如下設定即可輸入一次就不用再手輸入密碼的困擾而且又享受 https 帶來的極速 按照以下設定記住密碼十五分鐘 git config global credential.helper cache...