Git: fatal: fsync error on 'sha1 file': Bad file descriptor

前端 未结 8 2907
既然无缘
既然无缘 2020-12-19 12:52

I\'m using VS Code with Git - it\'s in portable location C:\\_DEV\\bin\\git and is also added to Windows PATH so it works just fine with no remotes.

I have a OneDriv

相关标签:
8条回答
  • 2020-12-19 13:16

    I am posting late to help others get to the solution faster than I did. The actual culprit was elusive, and I tried everything from re-installing GIT to creating new repositories.

    This happened to me in windows and it was due to a change in permissions in a parent folder somewhere.

    The solution was to simply disconnect and remap the folder.

    0 讨论(0)
  • 2020-12-19 13:18

    Thanks to @edward-thomson.
    I had same problem on my PC, where i mapped a folder under my homedrive to E:

    C:\Users\myuserid\E-Folder\SomeGitProject
    

    by sharing the folder, so i could shortcut it to

    E:\SomeGitProject
    

    Solution was to use the full path in CMD or use the shortcut to homedrive from git bash:

    ~/E-Folder/SomeGitProject
    

    I guess your A: likewise is a share, that you can access with a full path probably also located somewhere under your homedrive.

    0 讨论(0)
  • 2020-12-19 13:19

    I had the same problem with visual studio 2017. My solution was to close visual studio, then open Visual studio CODE and merge the files there.

    0 讨论(0)
  • 2020-12-19 13:24

    Restarting VS Code works. A bit easier than disconnecting and re-mapping the folder (which also works).

    0 讨论(0)
  • 2020-12-19 13:26

    I just had the same problem. In my case the problem was low disk space. Hope this helps someone.

    0 讨论(0)
  • 2020-12-19 13:28

    I also have mapped my root webspace as a drive. This is no problem until files are watched (like with npm run watch).

    0 讨论(0)
提交回复
热议问题