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.
07f9d9d980ᴀᴍᴛᴏᴀᴇʀ committed on 1/6/2026, 2:07:22 PM· committed by GitHubparent6e21fa9
5 files changedLine totals unavailable