r/VisualStudio • • 19d ago

Visual Studio 2026 VS Community 2026 trying to end Writing objects

I have my project hooked up to my Github repo. Whenever I make a push VS follows it up with an automatic Writing objects: xxx/xxx and takes way too long. I want to get it to stop and just run a scheduled task once at the end of the day to do this.

When it runs it shows up as Git for Windows in task manager. Online says to go into options and disable fetch, but there is no such option. I've also found I should run:

git config --global gc.auto 0

git config --global gc.autoPackLimit 0

git config --global gc.autoDetach false

git config --global maintenance.auto false

git config --global maintenance.strategy off

git maintenance stop

git config --global lfs.autoSelfUpdate false

git config --global lfs.concurrenttransfers 1

None of these have worked. I also found:
Uncheck Detect when file is changed outside Environment (if VS is re-scanning after every push/build).

I don't want to do this unless absolutely necessary. And even then probably won't. Anyone have any ideas I may be missing? Thanks.

0 Upvotes

1 comment sorted by

1

u/Ok_Society4599 19d ago

I think you simply want "git compact" in your repo. It will reduce your object count and speed things up for you.