C
C
Cody452021-11-08 09:58:10
git
Cody45, 2021-11-08 09:58:10

How to log in to git using a token?

Good day.
After reinstalling the OS, I could not log in to git. Google announced a change in the authorization rules in github.
Generated a new token. How can I log in with it now?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Bannikov, 2021-11-08
@vabka

The token is used as the password for authentication, instead of your normal password.
But it's better to set up ssh keys and use them.
https://qna.habr.com/q/964989#answer_1913237

L
lagudal, 2021-11-08
@lagudal

you can also with a token if you want

git remote set-url origin https://[email protected]/your_username/your_repo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question