为什么LFS git的git push要求输入密码3次?

问题描述 投票:1回答:1

我在LFS模式下使用标准的github.com回购,并且工作正常。但是,当我按下按钮时,总是发生此3xLogin:

git push
Username for 'https://github.com': xpto
Password for 'https://[email protected]': 
Username for 'https://github.com': xpto
Password for 'https://[email protected]': 
Locking support detected on remote "origin". Consider enabling it with:
  $ git config 'lfs.https://github.com/xpto-org/xpto-prj.git/info/lfs.locksverify' true
Username for 'https://github.com': xpto
Password for 'https://[email protected]': 

Git LFS: (0 of 1 files) 3.38 MB / 925.18 MB 
git large-files
1个回答
0
投票

尝试一下:

将此添加到您的~/.ssh/config文件。

Host *
  AddKeysToAgent yes
  UseKeychain yes

启动您的ssh代理:

eval "$(ssh-agent -s)"

然后添加您的密钥:

ssh-add ~/.ssh/id_rsa

note您的密钥可以使用不同的名称。

© www.soinside.com 2019 - 2024. All rights reserved.