Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I have problems with loging in to Overleaf via git

Tags:

git

I want to use the connection between git and overleaf (on Windows 10 with git bash). One time it worked, but now I get always errors.

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/'

I set username and password via:

git config --global user.name "[email protected]"
git config --global user.email "[email protected]"
git config --global user.password "**********"

It worked once some days ago. There I Overleaf asked me for password and name. But this has changed now. Do you have any suggestions?

like image 219
Zeitproblem Avatar asked Jan 25 '23 12:01

Zeitproblem


1 Answers

To store username and password for Overleaf, add the following to your .gitconfig:

[credential "https://git.overleaf.com"]
    username = your@email
    helper = store
like image 169
pavel Avatar answered Jan 28 '23 10:01

pavel