Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push Branches & Tags to Multiple Remotes #385

Closed
ghost opened this issue Sep 18, 2020 · 7 comments
Closed

Push Branches & Tags to Multiple Remotes #385

ghost opened this issue Sep 18, 2020 · 7 comments
Assignees
Labels
feature request Feature request
Projects
Milestone

Comments

@ghost
Copy link

ghost commented Sep 18, 2020

Describe the feature that you'd like
Git Graph currently supports managing multiple remotes. When pushing a branch we are give drop down box to select which remote we would like to push to. It would be fantastic if instead of a drop down box we could have check boxes. Then when selecting push branch we could select remotes that we would like to push the branch to.

Those check boxes would trigger a queue of git push commands. Assuming we have the following setup:

  • origin - git@github.com:USER/repo.git
  • staging - USER@remote_host:/path_to_git_repo
  • production - USER@remote_host:/path_to_git_repo

The dialog could look something like this:

gitgraph

@ghost ghost added the feature request Feature request label Sep 18, 2020
@ghost ghost assigned mhutchie Sep 18, 2020
@mhutchie
Copy link
Owner

Hi @caasi-dev,

Thanks for raising this feature request, this would be really useful to have in Git Graph! I’ll include it in the next release.

@mhutchie mhutchie added this to To Do in Git Graph via automation Sep 18, 2020
@mhutchie mhutchie added this to the v1.27.0 milestone Sep 18, 2020
@ghost
Copy link
Author

ghost commented Sep 18, 2020

Thank you, I've started studying your extension, so maybe in the future, I could help with PRs :-)

@mhutchie mhutchie moved this from To Do to In Progress in Git Graph Sep 19, 2020
@mhutchie mhutchie changed the title multiple push Push Branches & Tags to Multiple Remotes Sep 19, 2020
@mhutchie
Copy link
Owner

This will be available in v1.27.0.

If you'd like to use it before the next release, you can download v1.27.0-beta.1, and install it following the instructions provided here.

Git Graph automation moved this from In Progress to Ready For Release Sep 19, 2020
@ghost
Copy link
Author

ghost commented Sep 19, 2020

I am trying to test it, and I can confirm that I have 1.27.0-beta.1 installed as seen in the image below

image

How was it implemented? With the suggestion above? Check-boxes?

Here is my repo confing

sdsd

But I do not seem to be able to see the checkboxes? But still drop-down

image

Have I done something wrong?

@mhutchie
Copy link
Owner

Hi @caasi-dev,

The “Push to Remote(s)” input is now a multiple select input (notice the checkbox next to the “origin“ item). You can click multiple items in the select list, just like if they were a list of checkboxes.

FYI: The reason I chose a multiple select input instead of multiple checkboxes, is that if checkboxes were used, the dialog would change height depending on the number of remotes the user had. This isn’t ideal if the user has many remotes, as the dialog would become extremely tall. By using a multiple select input, the dialog always maintains the same height, no matter how many remotes the user has.

@ghost
Copy link
Author

ghost commented Sep 20, 2020

Ah that's a very good design choice and I guess I will have to update my theme to make those checkboxes more obvious. Will give it another test on Monday. Cheers!

@ghost
Copy link
Author

ghost commented Sep 20, 2020

works great, thank you !

@mhutchie mhutchie moved this from Ready For Release to Released in Git Graph Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request
Projects
Git Graph
Released
Development

No branches or pull requests

1 participant