# git: Respect upstream branch name when pushing \(\#46158\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/07f9d9d9805e2527a792378cdf717e0ce263b935)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 07f9d9d9805e2527a792378cdf717e0ce263b935

Requested commit: 07f9d9d9805e2527a792378cdf717e0ce263b935

Commit: 07f9d9d9805e2527a792378cdf717e0ce263b935

Tree: 8432bd5c72ebd1e90d1c0880ab044d5e8180b1fb

Author: ᴀᴍᴛᴏᴀᴇʀ

Committer: GitHub

## Message

```
git: Respect upstream branch name when pushing (#46158)

Closes #46119

Release Notes:

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

## Parents

- [6e21fa9a6af1e345a8dea595da922aab93f26826](https://git.cafe/gitcafe/zed/commit/6e21fa9a6af1e345a8dea595da922aab93f26826?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/07f9d9d9805e2527a792378cdf717e0ce263b935?format=markdown)
