Skip to content

git: Respect upstream branch name when pushing#46158

Merged
kubkon merged 2 commits intozed-industries:mainfrom
amtoaer:fix_git_push_upstream
Jan 6, 2026
Merged

git: Respect upstream branch name when pushing#46158
kubkon merged 2 commits intozed-industries:mainfrom
amtoaer:fix_git_push_upstream

Conversation

@amtoaer
Copy link
Contributor

@amtoaer amtoaer commented Jan 6, 2026

Closes #46119

Before:

CleanShot.2026-01-06.at.21.13.01.mp4

After:

CleanShot.2026-01-06.at.21.18.33.mp4

Release Notes:

  • Fixed git push to respect the upstream branch name instead of defaulting to the local branch name.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 6, 2026
@github-actions github-actions bot added the community champion Issues filed by our amazing community champions! 🫶 label Jan 6, 2026
@kubkon kubkon self-assigned this Jan 6, 2026
@kubkon kubkon enabled auto-merge (squash) January 6, 2026 14:03
@kubkon kubkon merged commit 07f9d9d into zed-industries:main Jan 6, 2026
23 checks passed
@amtoaer amtoaer deleted the fix_git_push_upstream branch January 6, 2026 14:09
rtfeldman pushed a commit that referenced this pull request Jan 6, 2026
Closes #46119

Release Notes:

- Fixed git push to respect the upstream branch name instead of defaulting to the local branch name.
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
Closes zed-industries#46119

Release Notes:

- Fixed git push to respect the upstream branch name instead of defaulting to the local branch name.
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
Closes zed-industries#46119

Release Notes:

- Fixed git push to respect the upstream branch name instead of defaulting to the local branch name.
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Feb 15, 2026
Closes zed-industries#46119

Release Notes:

- Fixed git push to respect the upstream branch name instead of defaulting to the local branch name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement community champion Issues filed by our amazing community champions! 🫶

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Git push with mismatched local/remote branch name creates new remote branch

2 participants