-
-
Notifications
You must be signed in to change notification settings - Fork 605
Doesn't appear to push to multiple remotes, unlike git push
#1306
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
Comments
oh wow I had no idea I could have it push to two remotes at the same time. TIL |
If you're curious, it doesn't appear to make a difference if I use
I personally prefer to have them all as |
Open for PRs :) |
This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
I've learned that I can fetch updates from all my remotes with:
This doesn't actually pull from more than one remote, it's only fetching updates from the non-"origin" remotes, but I don't usually use I also usually push with:
It's easy to forget to push other branches when working with multiple remotes, so even if Frankly I don't fully understand Seirdy's (excessively complex?) git aliases and I don't use them. |
Would love to see functionality for pushing to multiple remote branches implemented. Like @skyfaller, I have projects with multiple remotes, but gitui seems unable to work with them (it crashes with pushing in these projects). My ideal behavior would be: Press But minimal desirable behavior would be something like @skyfaller suggests: |
unfortunatelty libgit2 does not seem to support remotes with multiple
we have to add that upstream first |
Describe the bug
I have multiple git remotes, as described in https://seirdy.one/posts/2020/11/18/git-workflow-1/
The repo in question is https://git.sr.ht/~skyfaller/twentyeleven-skyfaller
My
.git/config
looks like this:When I make changes to my git repo, and use gitui to
Push [p]
, it only pushes to one remote, in this case GitHub /gh_mirror
.It appears it pushes to the remote which is listed last. This doesn't parallel git's behavior, git prioritizes the URL that is listed first when pulling:
But since gitui should push to all of the URLs rather than picking one anyway, this isn't important.
When I use
git push
after using gitui to push, I see:As you can see,
git push
is successfully pushing to the other remotes thatgitui
did not.Expected behavior
I expect the behavior of
git push
and gitui's "Push" function to be identical.Context (please complete the following information):
The text was updated successfully, but these errors were encountered: