We all love
git because it is fast and branching is cheap (especially this if you have used other VCS where branching requires going for a walk, e.g. Perforce and Alienbrain).
With the default
git configuration mode for pushing branches (
simple) you would have been frustrated with this message.
fatal: The current branch testing-123 has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin testing-123
Until recently, I've just "dealt with it" and copied/pasted the provided line. But we can do better by adding new
git config --global push.default "simple" git config --global alias.push-new "push --set-upstream origin HEAD"
git workflow, see my other post on Creating an awesome git experience on Windows.