Add popup if upstream branch is not set when pushing #507
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #492
Adds a popup on push with the list of possible remote branches if no remote branch is set. At the bottom of the list is the name of the branch which may exist in remote repo but which can be pushed (-u) and added if it is not there. This allows the user to select one of the remote branches which are connected to their repo or push their own branch name.

Would it be better to not list all the remote branches? i.e only list
origin/<branch_name>
,<some_remote>/<branch_name>
, or do it the way it is right now, with all the branches?Perhaps a drop down list, where
origin
and<some_remote>
could be selected to push to them with the branch name, or they could be dropped down to selected a specific branch.And should the user be able to set the branch upstream by pressing, e.g
U
on in the status tab to bring up the upstreams? I think a dedicated branch tab for dealing with local/remote branches would be better, but would be happy to add aSet upstream [U]
button.Any suggestions on how to handle this would be appreciated.