'Github push origin master and Token authentication

Before today I update my git repo with the following commands:

git add -A

git commit -a -m 

push origin master

and after the last command I insert my Github username and password. As you know, from today it is no longer possible to use this type of authentication and I'm not at all familiar with Github so I wanted to ask you if you can show me step by step how to update my repo because I can't understand this token authentication thing (yes I'm a stupid).



Solution 1:[1]

Create a token as described by github. Using token instead of password:

$ git clone https://github.com/username/repo.git
Username: your_username
Password: your_token

You can also use token in url, no prompt then:

git push https://[email protected]/my_github_account/my_repo.git

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 frmbelz