簡體   English   中英

git:'credential-osxkeychain'不是git命令。 看'git --help'

[英]git: 'credential-osxkeychain' is not a git command. See 'git --help'

我與bitbucket連接,我在我的計算機上安裝了Git和sourcetree,我嘗試將sourcetree和bitbucket連接在一起。 但我無法連接兩者。 當我嘗試克隆存儲庫源路徑時,它說

this is not a valid source path... 
git: 'credential-osxkeychain' is not a git command. See 'git --help'.

在此輸入圖像描述

喜歡這個錯誤

我對credential-osxkeychain文件一無所知,而且我正在使用windows os

任何人都可以幫我解決這個問題嗎?

有沒有機會呢

$ git config --get credential.helper

正在展示osxkeychain 這僅適用於OS X.

嘗試找到相應的.gitconfig文件(可能在$ HOME中)並刪除憑證幫助行。

編輯:Atlassian也記錄了這個問題

在Windows機器上, WinCred可用於存儲憑據。 設置Git以通過運行來使用Windows憑據管理器

git config --global credential.helper wincred

嘗試git fetch or pull ,它應該再次提示憑據並將其存儲在憑證管理器中。

可以在“控制”面板中找到憑據管理器(搜索將指向正確的方向)。 這可以很方便地快速刪除憑據。

暫無
暫無

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

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