Steps
Create Repository at Github website.

To avoid errors, do not initialize the new repository with README, license, or gitignore files. You can add these files after your project has been pushed to GitHub.
Initialize local repository
1 | git init -b main |
Bind local and remote repository

1 | git remote add origin <REMOTE_URL> |
Authentication
Generate token as following:
Use token:
1 | git remote set-url origin https://<generated_token>@github.com/<user-name>/<remote_repository_name>.git |
Push to remote
1 | git push -u origin main |