我在LFS模式下使用标准的github.com repo,它工作正常...但总是,当我推动时,这个3xLogin会发生:
git push
Username for 'https://github.com': xpto
Password for 'https://xpto@github.com':
Username for 'https://github.com': xpto
Password for 'https://xpto@github.com':
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://xpto@github.com':
Git LFS: (0 of 1 files) 3.38 MB / 925.18 MB
答案 0 :(得分:1)
为避免这种情况缓存密码,您还可以自定义时间。访问链接: https://help.github.com/en/github/using-git/caching-your-github-password-in-git
答案 1 :(得分:0)
尝试一下:
将此添加到您的~/.ssh/config
文件中。
Host *
AddKeysToAgent yes
UseKeychain yes
启动ssh代理:
eval "$(ssh-agent -s)"
然后添加您的密钥:
ssh-add ~/.ssh/id_rsa
注意您的密钥可以使用不同的名称。