Skip to content

Fixed setting upstream (ex. 5)#153

Open
stelliom wants to merge 1 commit intomainfrom
fix-setting-upstream
Open

Fixed setting upstream (ex. 5)#153
stelliom wants to merge 1 commit intomainfrom
fix-setting-upstream

Conversation

@stelliom
Copy link
Contributor

Fixes #152.

@stelliom stelliom requested a review from AnnikaLau September 12, 2025 12:03
```bash
git switch -c <my-branch>
git branch --set-upstream-to=origin/<my-branch> <my-branch>
git push -u origin <my-branch>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we add a comment that this has to be done only once? Or instead we let them to try to run git push only and then they should follow the Git instructions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
git push -u origin <my-branch>
git push -u origin <my-branch> # Note that this only needs to be done once per branch (generally when it's created)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AnnikaLau Old PR, but maybe I can just merge it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot set upstream branch (Ex:5)

2 participants