Why does git not recognize “origin/master” as a valid object name?

后端 未结 3 812
无人及你
无人及你 2021-02-19 07:27
~/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         


        
3条回答
  •  遇见更好的自我
    2021-02-19 07:46

    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.

提交回复
热议问题