Git is slow at startup

I have a little problem with git in my computer, I create a new folder and run git Bash, but it takes git to load as long as the command will be displayed in it, but it takes some time to display the git line.

Any clue to this?

thanks

+6
git
source share
6 answers

Updating to the latest version (1.7.3.1) seems to have resolved this issue for me on XP.

+2
source share

I had a similar problem. It turned out that the home directory is on a network drive, and this caused a lot of slowdowns.

You can check your home directory by typing echo $HOME in Git bash. If it points to a network drive, you can change it to a local path (for example, C:\documents and settings\<login> on XP) by setting the HOME environment variable in Windows.

If startup is still slow, see if the start directory for the Git Bash shortcut is %HOMEDRIVE%%HOMEPATH% . If so, try changing it to %HOME% .

+5
source share

You may not know that you really don't need to use the "Git Bash" shell. If you add the directory containing git.exe to the PATH environment variable, you can simply run git commands from a regular Windows command line.

+2
source share

Could you check your .bashrc ?

Someday, the prompt is too complicated, it can cause the shell to respond slowly. See this entry for illustration .

+1
source share

Any users who have problems with slowness in Windows 7 might want to check out this related question , which explains that this is because of UAC. The solution is Run as Administrator .

Unfortunately, this does not eliminate the symptoms described in the question (just slow at startup) on my XP machine.

+1
source share

I have the same problem, for each "Entry" it takes more than 10 seconds to get an answer. It also takes more than 20 seconds to start the shell. I reinstalled git, the problem also existed. Therefore, I am thinking about what I have been doing in recent days, I have added several directories in PATH, and I have many tools in the directory. So, I'm trying to remove the directory from PATH, and after that Shell returned to its normal state.

 $ cat ~/.profile #!/bin/bash #export PATH=$PATH:"/c/Program Files/qemu/" #export PATH="/d/rootfs/bin":"/d/rootfs/usr/bin":$PATH #export PATH="/c/Program Files (x86)/CodeBlocks/MinGW/bin":$PATH #export LD_LIBRARY_PATH="/d/rootfs/lib/" alias ..="cd .." alias ll="ls -l" #alias make=mingw32-make.exe #alias bash=bash.exe #alias sh=sh.exe 
0
source share

All Articles