Skip to content

Use 'git push -u origin <branch>' when upstream is not yet configured#15

Merged
pforret merged 1 commit intomasterfrom
claude/propose-upstream-branch-setup-S7SU4
Mar 23, 2026
Merged

Use 'git push -u origin <branch>' when upstream is not yet configured#15
pforret merged 1 commit intomasterfrom
claude/propose-upstream-branch-setup-S7SU4

Conversation

@pforret
Copy link
Copy Markdown
Owner

@pforret pforret commented Mar 23, 2026

When push or auto is called and a git remote exists but the current
branch has no upstream tracking branch, use 'git push -u origin '
to set up the default branch instead of a plain 'git push' which would fail.

https://claude.ai/code/session_01BMZHjPvpKubqTHFMAdYtbr

When push or auto is called and a git remote exists but the current
branch has no upstream tracking branch, use 'git push -u origin <branch>'
to set up the default branch instead of a plain 'git push' which would fail.

https://claude.ai/code/session_01BMZHjPvpKubqTHFMAdYtbr
@pforret pforret merged commit 02cacb6 into master Mar 23, 2026
5 checks passed
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.

2 participants