You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git fetch in Desktop doesn't use several available performance flags:
--no-write-fetch-head: Desktop never reads FETCH_HEAD (it uses rev-parse and for-each-ref instead), but every fetch writes it — wasting an fsync per fetch.
--write-commit-graph: The commit-graph file accelerates log traversal, merge-base computation, and reachability checks. Without it, these operations are O(n) per commit instead of O(1). Git supports incrementally building the commit-graph on fetch, but Desktop doesn't enable this.
--no-auto-gc (WSL only): Post-fetch auto-gc triggers repacking which is extremely expensive across the 9P filesystem boundary on WSL repos.
Proposed solution
Add these flags to the fetch args in app/src/lib/git/fetch.ts:
'--no-write-fetch-head','--write-commit-graph',
And for WSL repos:
'--no-auto-gc',
Additional context
These flags are also beneficial to set during clone via git config:
core.fsmonitor=true — uses OS filesystem watcher instead of scanning the working tree (20-30% faster status on large repos)
core.untrackedCache=true — caches untracked file state in the index
fetch.writeCommitGraph=true — persisted so every future fetch builds the commit-graph
Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the
help wantedIssues marked as ideal for external contributors
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.
Activity
github-actions commentedon May 21, 2026
Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the help wantedIssues marked as ideal for external contributors
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.
Optionally write the commit-graph on fetch
Optionally write the commit-graph on fetch
Optionally write the commit-graph on fetch