我在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
尝试一下:
将此添加到您的~/.ssh/config
文件。
Host *
AddKeysToAgent yes
UseKeychain yes
启动您的ssh代理:
eval "$(ssh-agent -s)"
然后添加您的密钥:
ssh-add ~/.ssh/id_rsa
note您的密钥可以使用不同的名称。