git - unable to create temporary file: no such file or directory - only for certain files?

后端 未结 5 1980
孤街浪徒
孤街浪徒 2021-01-05 08:31

I\'ve got a strange issue here with one of my git repositories. I cannot add certain files. Git states:

$ git add Konstrukti

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-05 08:59

    This worked for me:

    export TMPDIR="/tmp/"
    

    Yep, seriously. No idea what this actually did, but it worked, so I'm not exactly complaining. This might be a fix that only worked for me, because I can't reproduce the problem now that I've fixed it.

    If the problem recurs when you relog, put it at the bottom of your ~/.bashrc.

提交回复
热议问题