Answers for "how to setup git authentication token"

2

add token to cli git

git remote add origin https://[USERNAME]:[NEW TOKEN]@github.com/[USERNAME]/[REPO].git
//how to generate token : https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token
//or if you have set origin before 
git remote set-url origin https://[USERNAME]:[NEW TOKEN]@github.com/[USERNAME]/[REPO].git
Posted by: Guest on August-14-2021
2

git access token

Creating a personal access token : 
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

THEN :
git remote -v
git remote set-url origin https://<username>:<token access>@github.com:<username>/<repo>.git

exemple :
git remote set-url origin https://Trinix:[email protected]:Trinix/NFT-Platform.git
Posted by: Guest on January-11-2022

Code answers related to "how to setup git authentication token"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language