Improvement to Lifecycle of a Pull Request at git push origin
Where:
When all of your changes are committed (i.e. git status doesn’t list anything), you will want to push your branch to your fork:
git push origin <branch name>
This will get your changes up to GitHub.
There is a step missing which gave me some issue. That is the bit about the git command responds with username and password. If you enter your GitHub password the response is:
Username for 'https://github.com':
So I suggest adding enough info to get the beginners around this such that the page now reads:
Ensure that you have created a personal access token link. Note that you will likely need the token until your changes have been accepted. When all of your changes are committed (i.e. git status doesn’t list anything), you will want to push your branch to your fork:
git push origin <branch name>
At the password prompt:
Password for 'https://
Enter you personal access token (ghp_1e3f...) instead of your usual GitHub password. This will get your changes up to GitHub.
I don't want to recommend to create PAT manually. Users can use SSH, CredentialManager, or create PAT automatically with gh auth login too.
I prefer just adding a link to this section. https://docs.github.com/ja/authentication/keeping-your-account-and-data-secure/about-authentication-to-github#authenticating-with-the-command-line
Hi, That's fine as long as others don't fall into the pit that I did.