search

Home  >  Q&A  >  body text

git pull error

An error occurred while using git pull

Have you ever encountered similar problems? It was possible to pull before, but after others updated the code, it was no longer possible. I asked for help from others, and I also learned from it myself

習慣沉默習慣沉默2794 days ago569

reply all(8)I'll reply

  • PHP中文网

    PHP中文网2017-05-02 09:29:04

    Why does your branch name start with origin/feature/? refspec never has such a format


    git pull [options] [<repository> [<refspec>...]]
    <repository> should be the name of a remote repository as passed to git-fetch(1). <refspec> can name an arbitrary remote ref (for example, the name of a tag) or even a
    collection of refs with corresponding remote-tracking branches (e.g., refs/heads/:refs/remotes/origin/), but usually it is the name of a branch in the remote repository.

    Direct git pull origin 360xxx

    reply
    0
  • 阿神

    阿神2017-05-02 09:29:04

    Did you write the wrong branch? . .

    reply
    0
  • 为情所困

    为情所困2017-05-02 09:29:04

    The prompt says that the reference to the remote branch cannot be found. The branch name may be wrong or the reference may have been deleted. You can use the git branch -a command to check to see if there is a corresponding branch

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:29:04

    Your branch name is wrong.

    The default is origin master

    reply
    0
  • 阿神

    阿神2017-05-02 09:29:04

    git pull origin 360liuxueDisPage

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-02 09:29:04

    git pull origin master

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:29:04

    You can only pull down one branch. You can use git pull origin feature:develop to merge the remote feature branch and the local develop branch. Because you are currently on the develop branch.

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-02 09:29:04

    This is a problem with the branch name!

    reply
    0
  • Cancelreply