# git: Add \`PushTo\` to select which remote to push \(\#31482\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cf5e76b1b9512d8a16cba7269b3410a08c3ac2f9

Requested commit: cf5e76b1b9512d8a16cba7269b3410a08c3ac2f9

Commit: cf5e76b1b9512d8a16cba7269b3410a08c3ac2f9

Tree: 6f2d9f1453a3033c8e54279a86a30250e3894efc

Author: CharlesChen0823

Committer: GitHub

## Message

```
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>
```

## Parents

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

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