簡體   English   中英

獲取、拉取、合並或推送對 GitHub 的更改 gitbash 給出 {git: 'credential-cache' is not a git command。 請參閱“git — 幫助”。}

[英]Fetch, pull, merge or push a change to GitHub gitbash gives {git: 'credential-cache' is not a git command. See 'git — help'.}

這個錯誤

git:“憑據緩存”不是 git 命令。 請參閱“git --help”。

每次我嘗試與 GitHub 交互時都會顯示:
每次我嘗試與 github 交互時都會顯示此錯誤({git:'credential-cache' 不是 git 命令。請參閱 'git --help'。})

為了擺脫每次獲取、拉取、合並和推送對 GitHub 的更改時輸入 GitHub idname 和密碼的痛苦,我想到了使用
git config --global credential.helper cache命令用於存儲 idname 和密碼。 使用它后,我了解到,由於我使用的是 Windows,因此我必須使用manager而不是cache來執行相同的任務。 但是,每次我嘗試與 GitHub 交互時,都會顯示上述錯誤消息。

我從未使用過憑證助手。 但是,我認為它需要您安裝第三方工具才能使其正常工作。


作為建議,我會告訴您使用 ssh 密鑰cite^而不是第三方工具,這樣您會更安全。 如果您將密碼短語與 ssh-agent cite^一起使用,則更加安全。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM