git refusing to fetch into current branch

前端 未结 7 1610
不思量自难忘°
不思量自难忘° 2020-12-05 03:39

I set up a remote repository and I can push new changes to it, but I cannot fetch from it, I always get the (rather cryptic) error message:

fatal: Refusing t         


        
7条回答
  •  被撕碎了的回忆
    2020-12-05 04:30

    fatal: Refusing to fetch into current branch refs/heads/BRANCHNAME of non-bare repository

    I have Created a branch BRANCHNAME locally then executed command "git fetch upstream pull/ID/head:BRANCHNAME" and got fatal: Refusing to fetch into current branch refs/heads/BRANCHNAME of non-bare repository

    then i deleted the branch and again call the same cmd it ways fine.

    Actually i was checking out pull request branch.

提交回复
热议问题