-
Notifications
You must be signed in to change notification settings - Fork 60k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Git push instructions with branch switch and upstream tracking #34283
Conversation
- Added a step to ensure users switch to the correct feature branch before pushing changes. - Included the use of the `-u` (short for `--set-upstream`) flag in the git push command to set the upstream tracking branch. - Updated the text to reflect pushing changes to the remote repository with a clear explanation of each step.
Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
Automatically generated comment ℹ️This comment is automatically generated and will be overwritten every time changes are committed to this branch. The table contains an overview of files in the Content directory changesYou may find it useful to copy this table into the pull request summary. There you can edit it to share links to important articles or changes and to give a high-level overview of how the changes in your pull request support the overall goals of the pull request.
fpt: Free, Pro, Team |
@TDila Thanks so much for opening a PR! I'll get this triaged for review ✨ |
Linter error
Hi @TDila and thanks for your interest in the GitHub Docs— Unfortunately, we can't accept this submission. The article you've proposed to modify specifically relates to forking (and likely does need some updates, but we'd need to do that separately), and it's assumed the audience will be a beginner reader for whom these updated instructions wouldn't be relevant and may instead be confusing. If the instructions haven't worked, then we'd need to look at that separately, too, and make changes to the whole article or link out to e.g. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-repository-for-a-fork We encourage contributors to raise issues first before submitting pull requests, to give us time to verify proposals. For example in this case, if you've followed the article and found a problem, it'd be helpful if you could raise an issue so we can make a judgement about whether to recommend specific changes, direct you to GitHub Support, or decide to take changes in-house. You're also very welcome to look at any issues marked Thanks again for your interest in our docs. |
Why:
The update clarifies the steps for pushing changes to a remote repository by ensuring users are on the correct branch and properly setting the upstream tracking. This prevents confusion and potential mistakes when working with feature branches.
Closes: #34282
What's being changed (if available, include any code snippets, screenshots, or gifs):
Check off the following:
I have reviewed my changes in staging, available via the View deployment link in this PR's timeline (this link will be available after opening the PR).
data
directory.For content changes, I have completed the self-review checklist.