GitKraken won't push to new remote ("Select remote branch to push/pull with 'master': ")

janat08 picture janat08 · Jul 11, 2016 · Viewed 25.8k times · Source

So I've create a new repo on remote, and managed to connect it (I belief) to client (Git Kraken). Now it want a branch name from me for a repo that doesn't have any. Note that its also ...push/pull with "master":, that is master with a colon. Pretty much explaining a mechanic that is at play here is as welcome as actually drawing out steps.

Answer

Masoud Azizpour picture Masoud Azizpour · May 15, 2017

You'd need to "Set Upstream" for your local branch. To do so:

  • Find your local branch on left pane under LOCAL,
  • right-click and select "Set Upstream",
  • name your new remote branch on the prompt and click "Submit",
  • click "Push" on the top toolbar.

To avoid confusion, you could also name your local branch (to keep it the same as the remote) at the time of creating the branch from master or whichever remote you want to branch from.

Note: Though there shouldn't be drastic differences between versions, the above is based on GitKraken 2.5.0 64-bit (non-pro version)