Article 5APVW A git branch meant to be alternative fail to be swapped

A git branch meant to be alternative fail to be swapped

by
BudiKusasi
from LinuxQuestions.org on (#5APVW)
I made a branch meant to be experimental and alternative to master so did

Code:git branch Mafter it's been worked, it turns out to be better, so did swap:
Code:git branch -m master old
git branch -m M masterbut when ready, did push, suddenly

fatal: The upstream branch of your current branch does not match
the name of your current branch. To push to the upstream branch
on the remote, use

git push origin HEAD:M
...

It didn't get synchronized into remote git.
How's the correct one, will anyone point out the important missing/subtle step ?latest?d=yIl2AUoC8zA latest?i=mintm194TTc:UsLUBP5uKSQ:F7zBnMy latest?i=mintm194TTc:UsLUBP5uKSQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=mintm194TTc:UsLUBP5uKSQ:gIN9vFwmintm194TTc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments