git - 为什么我在通过 git 登录 Overleaf 时遇到问题

标签 git

我想使用 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/

相关文章:

git cherry-pick --continue, '--no-edit' 选项?

git - 将子模块更新为最新提交

git - 从本地的多个存储库创建 git 存储库

git - 如何保持 GIT 仓库同步

Git 卡在增量对象上

git - 无法再通过 https 推送到 Bitbucket : git returns fatal error

git - 如何恢复 Git 中丢失的提交?

git - 选择操作后如何中止交互式 rebase

linux - 使用来自终端的别名创建一个 git repo

git 添加 "Nothing specified nothing added "