我想使用 git 和 overleaf 之间的连接(在带有 git bash 的 Windows 10 上)。有一次它有效,但现在我总是出错。
git clone https://git.overleaf.com/number
Cloning into 'number'...
remote: Please sign in using your email address and Overleaf password.
remote:
remote: *Note*: if you sign in to Overleaf using another provider, such
remote: as Google or Twitter, you need to set a password on your Overleaf
remote: account first. Please see https://www.overleaf.com/blog/195 for
remote: more information.
fatal: Authentication failed for 'https://git.overleaf.com/number/'
我通过以下方式设置用户名和密码:
git config --global user.name "mail@domain.com"
git config --global user.email "mail@domain.com"
git config --global user.password "**********"
几天前它工作过一次。在那里,我 Overleaf 向我询问密码和姓名。但现在这已经改变了。你有什么建议吗?
最佳答案
要存储 Overleaf 的用户名和密码,请将以下内容添加到您的 .gitconfig
:
[credential "https://git.overleaf.com"]
username = your@email
helper = store
关于git - 为什么我在通过 git 登录 Overleaf 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59293055/