我在LFS模式下使用标准的github.com存储库,它工作得很好……但总是,当我推送时,会发生这个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 发布于 2019-09-28 05:29:16
试试这个:
将此代码添加到~/.ssh/config文件中。
Host *
AddKeysToAgent yes
UseKeychain yes启动ssh代理:
eval "$(ssh-agent -s)"然后添加你的密钥:
ssh-add ~/.ssh/id_rsa请注意,您的密钥可以命名为不同的名称。
发布于 2020-01-31 03:35:04
缓存密码为避免这种情况,您还可以自定义time.visit链接:https://help.github.com/en/github/using-git/caching-your-github-password-in-git
https://stackoverflow.com/questions/43371608
复制相似问题