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
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.