# Handle git push when there is no remote \(\#54522\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8e4c6797238d9b2772a947e324bf340c256f86ea

Requested commit: 8e4c6797238d9b2772a947e324bf340c256f86ea

Commit: 8e4c6797238d9b2772a947e324bf340c256f86ea

Tree: 6733c7922f4136c29cfaf257274ef1a7529e7207

Author: Chris Biscardi

Committer: GitHub

## Message

```
Handle git push when there is no remote (#54522)

Previously hitting `Publish` in the git panel would silently fail with
no error message if the git repo was new or didn't have a remote.

Now, when hitting `Publish` or attempting to push when there is no
remote using keyboard shortcuts, or using `Push To` or force push
options, an error message will be displayed.

<img width="1135" height="522" alt="Screenshot 2026-04-22 at 10 02
26 AM"
src="https://github.com/user-attachments/assets/93c5e7ee-371e-4c2c-961b-42501cbd7119"
/>

<img width="1135" height="522" alt="Screenshot 2026-04-22 at 10 02
36 AM"
src="https://github.com/user-attachments/assets/a923e5f2-4099-45b5-8fe2-eb78f4fc9f10"
/>


Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Fixed handling of `git push` when there is no remote available to push
to
```

## Parents

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

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