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.
You can also do git push -f as long as the remote branch you want to push to is the most recent one you pushed to. "will force push all local branches" - Why would it push anything but the active branch?
If you run the simple command git push , Git will by default choose two more parameters for you: the remote repository to push to and the branch to push. By default, Git chooses origin for the remote and your current branch as the branch to push.
You'd need to "Set Upstream" for your local branch. To do so:
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)
I had this same problem - I typed in "origin/master" and that pushed it for me, I guess it just wants to know where it is pushing it to even if there is only one place.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With