I think everyone using git from command line knows this scenario:
1) Code, code, code, ...
2) Hmm, better save my progress.
$ git checkout -b my...
For further actions, you may consider blocking this person and/or reporting abuse
Instead of having to type
git push --set-upstream origin myawesomefeaturethe following shorter version works as well (i.e. the branch name can be omitted, it defaults to the current one, and the flag--set-upstreamhas a short version-u):I'm afraid that didn't work for me.
Can you elaborate a bit? What's the error message?
same as above post,
I'm confused. That error is expected if you just issue
git push. My suggestion was to usegit push origin -u(instead of the longer versiongit push --set-upstream origin myawesomefeature).Sorry I've no idea, I've tried.

when
what's your config?
From what I understand, I think it will only work if it was push successfully before or branch exist in remote?

ref: git-scm.com/docs/git-push#Document...
I haven't set that config, I use the default (i.e.
push.default=simple). For megit push origin -uworks.Setting
git config --global push.default upstreamI get the same error as you.The OP suggested to use
git config --global push.default currentthough, which has the desired effect (i.e.git pushsets the remote branch as the tracking branch).I'm less concerned that there is a long command to type and more concerned with:
That is too SVN like and partial commits are usually more appropriate.
Partial Commits with Git
Jesse Phillips
Don't disagree, but that's just not point of this post.