1

I have git version 1.9.5.msysgit.0 installed with proper configuration but still getting this error while pulling code?

I tried git pull on develop branch

fatal: Unable to create 'c:/xxxx/.git/refs/remotes/origin/"failed-to-sent".lock
': Invalid argument
Unexpected end of command stream

But when I do git pull origin develop, everything is fine.

Any thoughts , why ?

Swapnil Kotwal
  • 5,418
  • 6
  • 48
  • 92

2 Answers2

2

The quote character isn't a valid file path for Windows; you have named your origin "failed-to-sent" (presumably instead of failed-to-sent) and as such the Git command won't be able to save any files associated with that origin. You can fix this with a git origin --rename command, or you can just edit the .git/config file to fix the typo in there instead.

AlBlue
  • 23,254
  • 14
  • 71
  • 91
1

DELETE THAT BRANCH -> git push origin --delete \"failed-to-sent\"

Yuvaraj P
  • 2,067
  • 3
  • 15
  • 12