Git Status Takes a Long Time to Complete

后端 未结 13 704
一整个雨季
一整个雨季 2020-12-12 20:32

I\'m using git to manage files in a local directory on a Windows machine - no network is involved here, I\'m not pushing or pulling to/from another machine. My

13条回答
  •  鱼传尺愫
    2020-12-12 20:42

    My git status was very slow (up to one minute), because the global .gitignore file was located in my windows userprofile, which was stored on an inaccessible network share.

    git config --global core.excludesfile
    showed something like \\Nxxxx0\User\Username\Eigene Dateien\gitignore_global.txt

    For some reason \\Nxxxx0 was inaccessible and my userprofile was loaded from a backup system \\Nxxxxx1. It took some time to figure that out, because usually my userprofile is bound to a drive letter by an enterprise startup script and accessing that drive letter was working as usual. I'm not sure why the git-config used the network share and not the drive letter (probably a younger me is to blame)

    After setting
    git config --global core.excludesfile $HOME/Eigene\ Dateien/gitignore_global.txt
    git status was back to normal speed.

提交回复
热议问题