Suffering from Visual Studio Crashing with Git?

Hopefully you might get some remedy from this post.

So, how did the story start?

A colleague of mine has symptom several weeks after we began to use Git as our source control tool.

Is anyone else having crash issues with Visual Studio whenever you do a Pull? I’m having it hang for up to 10minutes…..most times resulting in a crash.

Of course there were following discussion on the solution. But, no one worked well so far.

And my turn finally came. My Visual Studio went nuts again this morning. And I decided to look into the problem and finally found something interesting.

Firstly, devenv.exe process kept bashing stuff under $repository\.git\objects folder which contained

>= 1000 files
>= 200 sub folders.



500,000 more times…


Did a little bit search, and run across this article

Ran git gc in git bash


Then here’s the result.


And this solved problem significantly. I believe my colleague owes me some kind of medal.


One thought on “Suffering from Visual Studio Crashing with Git?

  1. Spot on with this write-up, I seriously believe that this website needs a great deal more attention.

    I’ll probably be back again to see more, thanks for the info!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s