Git LFS 要求每个跟踪文件的密码
Git LFS asking for passphrase for every tracked file
我正在使用 Git LFS 和 Bitbucket 使用 OSX(尽管我发现 Ubuntu 也有同样的问题)。
我的仓库包含许多使用 Git LFS
存储的文件
当我执行 git 克隆时,它要求我使用 Git LFS 为每个跟踪文件输入密码。这是一个大问题,因为我可以使用 Git LFS 存储数百个文件。
请注意,未使用 Git LFS 跟踪的文件没有问题。
我该如何解决这个问题?
我很惊讶其他人没有这个问题。
答案是使用:
git lfs clone
而不是 git clone
git lfs pull
而不是 git pull
这也通过使用并行化提高了性能。
有关详细信息,请参阅:https://www.atlassian.com/git/tutorials/git-lfs#speeding-up-clones
我知道我在教程页面上看到了这个。
"Since git-lfs only supports http/https, git will need to authenticate over http/https when pushing files, even if you are using ssh/git protocol for git. Without the credential helper, you will be asked to enter your username and password for EVERY connection, which is pretty unusable. To get around this, git credential helpers will help handling passwords for you."
你可以找到你需要的所有信息here
我正在使用 Git LFS 和 Bitbucket 使用 OSX(尽管我发现 Ubuntu 也有同样的问题)。
我的仓库包含许多使用 Git LFS
存储的文件当我执行 git 克隆时,它要求我使用 Git LFS 为每个跟踪文件输入密码。这是一个大问题,因为我可以使用 Git LFS 存储数百个文件。
请注意,未使用 Git LFS 跟踪的文件没有问题。
我该如何解决这个问题?
我很惊讶其他人没有这个问题。
答案是使用:
git lfs clone
而不是git clone
git lfs pull
而不是git pull
这也通过使用并行化提高了性能。
有关详细信息,请参阅:https://www.atlassian.com/git/tutorials/git-lfs#speeding-up-clones
我知道我在教程页面上看到了这个。
"Since git-lfs only supports http/https, git will need to authenticate over http/https when pushing files, even if you are using ssh/git protocol for git. Without the credential helper, you will be asked to enter your username and password for EVERY connection, which is pretty unusable. To get around this, git credential helpers will help handling passwords for you."
你可以找到你需要的所有信息here