我的版本 > 2.11,我需要使用憑證管理器。我讀到我需要使用 libsecret :
sudo apt-get install libsecret-1-0 libsecret-1-dev
cd /usr/share/doc/git/contrib/credential/libsecret
sudo make
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
但是 git 安裝是在沒有使用 yum 的情況下進行的,因為我的 git 版本不能作為 red hat 7.9 的包提供。所以我們編譯了源代碼。
Git 運行良好,但我沒有此檔案夾:/usr/share/doc/git/contrib/credential/libsecret
所以我不能執行 make 命令。
解決辦法是什么 ?
uj5u.com熱心網友回復:
如果你是從源代碼編譯的,那么就cd在你克隆代碼或解壓縮 tarball 的地方,然后cd contrib/credential/libsecret從那里運行 Make。并相應地調整構建憑證助手的路徑。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/460225.html
