如何在不使用 sudo 的情况下安装 git-credential-manager core
这将安装 Git Credential Manager Core 而无需 sudo 权限。它将安装到 $HOME/usr/bin 和 $HOME/usr/lib。
确保 $HOME/usr/bin 在你的 $PATH 中,$HOME/usr/lib 在你的 $LD_LIBRARY_PATH 中。
install_gcm.sh
wget https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.0/gcm-linux_amd64.2.6.0.tar.gz
tar xzvf gcm-linux_amd64.2.6.0.tar.gz
# Create directories if they don't exist
mkdir -p $HOME/usr/bin
mkdir -p $HOME/usr/lib
# Move files to appropriate directories
mv git-credential-manager $HOME/usr/bin/
mv libHarfBuzzSharp.so $HOME/usr/lib/
mv libSkiaSharp.so $HOME/usr/lib/现在你可以让 Git Credential Manager Core 自行配置:
configure_gcm.sh
$HOME/usr/bin/git-credential-manager configure示例输出:
gcm_configure_output.txt
Configuring component 'Git Credential Manager'...
Configuring component 'Azure Repos provider'...If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow