Skip to content

[Help wanted] Speed up push action when using partial clone and sparse checkout #78325

Closed Answered by Dragon1573
Dragon1573 asked this question in Repositories
Discussion options

You must be logged in to vote

The problem is resolved myself. Here's the solution:

  1. Install necessary dependencies rely on your operating system. We need them to provide nc on macOS/Unix/Linux or ncat.exe on Windows.
  2. Edit configurations in ~/.ssh/config, to enable "SSH over Proxy". This can speed up git clone git fetch and git push.
  3. Remove the entire repository. Re-clone it WITHOUT partial (no matter treeless or blobless) clone.

Now Git will squash all differences into 1 "data pack" and fetch from/push to remote just once.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@grandmas-favorite
Comment options

Answer selected by Dragon1573
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage Question
2 participants