Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 16 down vote accepted

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.

share|improve this answer
So 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 Sep 18 '10 at 12:58
To be specific, everything about a repo is contained in a .git directory. @Rook. – Sathya Sep 18 '10 at 16:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .