git: Add PushTo to select which remote to push (#31482)

mostly, I using `git checkout -b branch_name upstream/main` to create
new branch which reference remote upstream not my fork.
When using `Push` will always failed with not permission. So we need
ability to select which remote to push.

Current branch is based on my previous pr #26897 

Release Notes:

- Add `PushTo` to select which remote to push.

---------

Co-authored-by: Cole Miller <cole@zed.dev>
This commit is contained in:
CharlesChen0823
2025-06-06 21:07:40 +00:00
committed by GitHub
co-authored by Cole Miller
parent 9775747ba9
commit cf5e76b1b9
3 changed files with 30 additions and 8 deletions
+1
View File
@@ -46,6 +46,7 @@ actions!(
TrashUntrackedFiles,
Uncommit,
Push,
PushTo,
ForcePush,
Pull,
Fetch,