Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minimum set of portable Git binary files(for Windows) for `clone` and `pull` only

Tags:

git

I'd like to implement a Windows application which clones/pulls my remote git repository via dumb HTTP(clone and pull only).
To achieve this, I decided to put Git portable binaries in my application package, and my application will execute git.exe as a child process for 'git clone' or 'git pull' commands.
But the size of Git portable binaries from the official download site('https://git-scm.com/download/win') is over 200 MB, too large for my application.

Is it inevitable to execute any git command?
Or, can I extract a minimum set of binaries files, e.g., git.exe and some dlls, especially for clone and pull only?

P.S. libgit2 is not an option for me because it works with smart HTTP only, NOT with dumb HTTP.

like image 722
ALittleDiff Avatar asked Oct 30 '22 23:10

ALittleDiff


1 Answers

Probably your case is the one which would benefit from libgit2

like image 199
max630 Avatar answered Nov 15 '22 06:11

max630