[Help wanted] Speed up push action when using partial clone and sparse checkout #78325
-
Select Topic AreaQuestion BodyHi, everyone in the community! I'm currently working as a contributor of microsoft/winget-pkgs. The repository is HUGE for me so I enabled "treeless clone" and "sparse checkout" for it.
When syncing forks using git fetch --progress --depth=1 --all
git merge --progress upstream/master
git push --progress --ff-only origin master How can I sync them and pull/fetch all necessary Git Objects just once? It waste SO MANY times for me waiting push actions to finish. Full configurations here
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The problem is resolved myself. Here's the solution:
Now Git will squash all differences into 1 "data pack" and fetch from/push to remote just once. |
Beta Was this translation helpful? Give feedback.
The problem is resolved myself. Here's the solution:
nc
on macOS/Unix/Linux orncat.exe
on Windows.~/.ssh/config
, to enable "SSH over Proxy". This can speed upgit clone
git fetch
andgit push
.Now Git will squash all differences into 1 "data pack" and fetch from/push to remote just once.