I\'m trying to push one of my projects to github, and I keep getting this error:
fatal: The current branch master has no upstream branch.
I\'ve
Cool Blue's answer ALMOST worked for me.
First I did: "git branch --set-upstream-to=origin/master master", as recommended by Cool Blue.
But still received error message:
"failed to push some refs to ''
hint: Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes (e.g. 'git pull ...') before pushing again."
So I... did a "git push -f" command after the git branch, which worked finally worked for me.
After the forced push, subsequent "git push" commands worked without issue.