Today’s goal is to setup for using token-based authentication in GitHub.
In July 2020, we announced our intent to require the use of token-based authentication (for example, a personal access, OAuth, or GitHub App installation token) for all authenticated Git operations. Beginning August 13, 2021, we will no longer accept account passwords when authenticating Git operations on GitHub.com.
Push the local repository to the remote repository. I push the main branch to the remote repository named origin by using “git push” command.
> git push origin main
* The name of the branch “main” is the default name of branch in remote repository in GitHub. The default name was “master” until 2020.10.1. * You can check the current branch name by using the command “git branch” * You can change the name of the branch by using the command “git branch -m <before_name> <new_name>” ([Tips]Change the branch name in Git)