Git error→Support for password authentication was removed on August 13, 2021.

Aakib
2 min readSep 5, 2023

here we follow a token method to upload a code on github

  1. Log in to github account
  2. Go to your account setting
  3. go to developer setting in left bottom sidebar

4. click on personal access tokens → classic

5. generate new token select classic

6. write any thing in note section and tick the repo button to allow access of all the repositary in your github account by using this token or tick on all option if you are giving authentication to jenkins

Now click on generate token and copy the token

go to your terminal select the folder you want to push to your github and run following commands

  1. git add .
  2. git commit -m “push by using token”
git remote set-url origin https://username:your-token@github.com/username/repository.git

#username==your github username

#your-token == paste the token you copied above

#repository==name the repository where you want to push your code

4. git push --set-upstream origin main

It is done go to your github account to see the results

--

--

Aakib

Cloud computing and DevOps Engineer and to be as a fresher I am learning and gaining experiance by doing some hands on projects on DevOps and in AWS OR GCP