0

New GitHub Rules Guide [git push -u origin main]

 1 year ago
source link: https://dev.to/bekbrace/new-rules-in-github-git-push-u-origin-main-2k82
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Cover image for New GitHub Rules Guide [git push -u origin main]
Bek Brace

Posted on Nov 18

New GitHub Rules Guide [git push -u origin main]

This post explains very quickly how to push your code to your GitHub repository following the new rules imposed by GitHub company.

For starters, you cannot use your password anymore, instead you should use a generated token by GitHub

First of all you need to click on your profile picture and go to settings :

Then you scroll down till you reach Developer settings, then click on that :

From there, choose the last option - Personal Access Tokens :

Then click on "Generate new token" :

First you need to type the name of the app/site you want to push :

And then what I choose here is simply repo, but you can read every option in detail and choose whatever suits your needs :

Finally you will receive a token, you will copy it and substitute your password with it, and every time you want to push your code you will repeat the same steps and get a new generated token to enter with your username

I hope this quick guide was useful, and I will see you in next posts - over and out


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK