~/www> git branch --track live origin/master fatal: Not a valid object name: \'origin/master\'. ~/www> git remote origin ~/www> git branch * master test_branc
I was encountering the very same problem. And it turned out that I didn't have write permission in the remote. And hence the error.
Make sure you have the write permissions at remote. Not have one is one of the causes of this particular error.