Reputation: 460
I'm using GitKraken quite frequently, but I cannot manage how to set to which remote I want to push. In the context menu I cannot find any entry like "use this remote for push/pull".
I have to set it via the command line, then it works as expected.
git push -u origin2 dev/mybranch
is this really a missing feature?
Upvotes: 21
Views: 7603
Reputation: 976
You can also drag and drop to push to a different remote:
Source: https://help.gitkraken.com/gitkraken-client/pushing-and-pulling/#drag-and-drop-to-push
Upvotes: 3
Reputation: 450
Now, pushing (clicking on the Push button) will push to the selected origin! And when you want to change the origin the next time, repeat the step-1 and push.
Upvotes: 8
Reputation: 354
I'm currently trying to configure correctly more than one remote repo.
I understood that you have already setup correctly your remotes (by click plus simbole near REMOTE). Now :
You can check the result in the .git/config file in the home dir of your project.
Edit: Ok, I've tested this solution for some day. It's running structurally and I confirm this solution. Evenif when you switch from one branch with some remote to an other brach with different remote, some times the ui not responding correctly (freez or stop refreshing). So a I need to close and reopen gitkraken.
Upvotes: 18