Creating a GitHub token
In the previous lesson, we created an remote repository on GitHub. In the following work, we will access this repository through the terminal of our local computer.
When contacting via the terminal, we will be asked for a login and password. The login will be your GitHub login, but as a password, you will need to specify a special token. Let's create this token on the GitHub website.
To do this, go to the token creation page.
In the settings, you can select the token expiration date and access rights. For our purposes, it will be enough to give access rights in the first block named repo
.
Please note that the default token expiration date is 30
days. After that, it will stop working and will tell you that the password is incorrect. Be mentally prepared for this. Or just set the token expiration date to forever.
Create a token on GitHub. Copy it to yourself.