Git vs. Portable git

19,007

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:
19,007

Related videos on Youtube

Rook
Author by

Rook

Updated on September 17, 2022

Comments

  • Rook
    Rook almost 2 years

    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
    Rook almost 14 years
    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).
  • 100rabh
    100rabh almost 14 years
    To be specific, everything about a repo is contained in a .git directory. @Rook.