jesseduffield / jesseduffield/lazygit

Allow pushing with only remote, no branch name

Open
#3,727 7 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Is your feature request related to a problem? Please describe.**
I often set up my git repos with an `origin` remote and an additional `fork` remote.
Then, when I want to make a PR, I can fork off a new branch, commit, then run `git push fork`.
Git will then automatically push my current branch.
In lazygit (0.42.0), bringing up the push panel and deleting the branch name will come up with the error: `Invalid upstream. Must be in the format ' '`

**Describe the solution you'd like**
Update the matching conditions for a valid push target

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.