V
V
Vitaly Pukhov2016-09-17 06:35:14
git
Vitaly Pukhov, 2016-09-17 06:35:14

Is there a "small" version of the GIT client?

I wanted to find a small portable version of the GIT client, but all of them are kind of monstrous, over400MB when unpacking and 100500 files, I need a "small" version that can only git clone and git pull. Is there such a thing in nature or are all versions of such monsters?
ps IMHO 400 mb for a utility that even does not have a GUI like that over dofiga.

c8e8a09f237d4290958b56d5a528e72e.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Pukhov, 2016-09-18
@Neuroware

For those who need it, I didn’t find anything suitable, so I wrote my own with blackjack and only 1.5mb in size. You can get the source here https://github.com/vpuhoff/GitRepoAutoUpdater/
Compiled version for lazy people here https://github.com/vpuhoff/GitRepoAutoUpdater/blob...
Use like this: gitnano [urlgit] [dirname]
For example
gitnano. exe https://github.com/vpuhoff/GitNanoTestRepo.git GitNanoTestRepo
If the application finds an already downloaded repository, it will try to Pull, if something goes wrong (conflicts there or something else, then it will simply clone again and replace the old folder with the new one.
Naturally, all changes in the old one will be erased.For auto-updating applications, that's it.

V
Vadim Misbakh-Soloviev, 2016-09-17
@mva

As you have already been answered above, the whole "problem" is that, in view of the lack (until recently) of a normal terminal and (still) a normal package manager, git clients under Windows (by the way, it would be nice if you pointed out that we are talking about Windows in the title of the question) contain not only the git client itself, but also a GUI shell on it and a bunch of other things.
Wherein,

$  ls -l /var/portage/packages/dev-vcs/git-2.9.3.tbz2
-rw-r--r-- 1 root root 11M авг 17 01:22 /var/portage/packages/dev-vcs/git-2.9.3.tbz2
 $  ls -l /usr/bin/git
-rwxr-xr-x 117 root root 1,9M сен  6 11:48 /usr/bin/git
$  ls -l /usr/lib/libgit2.so.0.24.0
-rwxr-xr-x 1 root root 906K авг 10 14:10 /usr/lib/libgit2.so.0.24.0

So if you want
"small" version that can only git clone and git pull
then you can take libgit and make a homemade wrapper over it in your favorite language.
Or, for example, take the built-in (in new releases of Windows10) Ubuntu and put the "native" git there and use it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question