githubcloning

Problems with cloning a git repository to new computer


This might be trivial, but it has caused me a ton of headaches over the last few days. Recently i have tried to clone my git repos onto my new computer, but up until now, with no succes. After typing "git clone " followed by the respective git URL, my comand line is asking for my Username and passwort. Even though i provide both correctly, i get the following error:

enter image description here

I do not have 2FA enabled, and as i understand it, the access token is only required in the case of enabled 2FA.

Does anyone have any idea what i am doing wrong?


Solution

  • A token is not jsut required for 2FA.

    It is now (since mid 2021) required for any web operation with authentication, using said token as a password.

    You need to create a PAT (Personal Access Token), with scope 'repo'.