git pull displays “fatal: Couldn't find remote ref refs/heads/xxxx” and hangs up

前端 未结 9 897
醉话见心
醉话见心 2021-01-31 06:58

I created a branch called \'6796\', then I pushed it to remote, checked it out on another machine, made other edits, pushed it, then merged it with the master, and deleted it -

9条回答
  •  情歌与酒
    2021-01-31 07:21

    I had a similar issue when I tried to get a pull with a single quote ' in it's name.

    I had to escape the pull request name:

    git pull https://github.com/foo/bar namewithsingle"'"quote
    

提交回复
热议问题