Push to multiple remotes
We have the need to push our code to both Github enterprise and Azure Devops it would be great if there was a way to tell GitKraken to push to both locations rather than having to "push, set upstream, push again, set upstream back."
Comments: 4
-
01 Oct, '21
Alex Latham AdminHi Jeremy,
I went ahead and approved this request since there is no way to simultaneously push to multiple remotes at the same time in GitKraken. However, you do not need to change the upstream each time you push. Instead, you can leverage drag-and-drop functionality to push to a remote without touching your upstream setting. Check out the .gif on this page: https://support.gitkraken.com/working-with-repositories/pushing-and-pulling/#drag-and-drop-to-push -
16 Dec, '21
JohnThis would be extremely useful to me
-
29 Dec, '21
dougI actually just submitted a support ticket about this and was also pointed to this site as well as being told about the drag and drop.
I just want to mention this totally works on the command line -- even within the command line client on GitKraken. Just use
git remote set-url --add --push origin /path/to/repo1
git remote set-url --add --push origin /path/to/repo2
to set the remotes up (would be nice to have GUI support for multiple push locations as well, but that's less important to me as it's just configuration)
You can verify your remotes with
git remote -v
to see that repo1 and repo2 are both set as your push locations for origin and then just git push and voila.
Seems like GitKraken GUI only uses the last push entry in git remote -v to push. It ignores any others that are set. -
2 days ago
FrancisThe drag-and-drop approach is not viable when the sidebar has like 500+ branches in it. This functionality needs to be worked on.