Git vs. Portable git

21

5

I don't do my system reinstalls that often, and the last time I looked there was only "regular" git on the download list. Now I see they pushed out the portable variant as well ... only I haven't been able to find what exactly do they entail by "portable" ... since git needs enviromental variables & stuff. to work properly ...

Could anyone give a short explanation in a word or two? (well, ... ten to twenty :-)

I know I could just install it, and then remove it - but I prefer to avoid doing just that on a new system.

Rook

Posted 2010-09-18T12:02:52.860

Reputation: 21 622

Answers

18

Portable, in this context, means that you don't need any special installation procedure. You can just unpack the archive on a USB drive (typical case) and run it from there. The opposite of portable would be a program that needs some files to be at a specific location in the filesystem hierarchy, that requires registry entries, etc.

By the way, all git needs is a place to store checkouts and repositories. Environment variables automate some tasks, but they're not required for basic operation, you can use command line arguments instead, and you can set them for a single terminal session if you want to use them. So they don't affect portability.

Gilles 'SO- stop being evil'

Posted 2010-09-18T12:02:52.860

Reputation: 58 319

2So basically, it is self contained, doesn't store reg. entries, and if I use the portable variant I'll need to supply command line arguments to commands. Otherwise from that, things are like usual (i.e. everything related to project goes to .git). – Rook – 2010-09-18T12:58:59.597

To be specific, everything about a repo is contained in a .git directory. @Rook. – Sathyajith Bhat – 2010-09-18T16:31:30.373