Are there portable versions of Git for Mac OSX?

I would like to be able to do some development work on public / borrowed computers (where I do not have root privileges), and I managed to get most of my tools working with a USB drive, but I still don’t know if the Git solution was found.

The portable versions of Git that I found are Windows only. Do you know any alternatives to Mac?

EDIT: I got some tips to just copy my current Git installation from / usr / bin and put it on a USB stick. This is a great idea, but I do not have a current Git installation for copying. I will not have my own computer for several weeks.

Could you find out where I can get the pre-compiled version of Git for OSX? I do not have access to homegrown or ... something really. Ideally, I could just take the zip file from somewhere and dump it onto my USB drive.

+5
source share
4 answers

I managed to build a solution based on the ideas of several different people (thanks to all of you):

  • Download the Git binary for Mac OSX git-scm.com . The downloaded DMG contains a PKG file.
  • Unzip the PKG file using unpkg or something similar. (This step is necessary because usually PKG files can only be installed with root privileges.)
  • etc git, USB-.

, , USB-, git PATH (: export PATH=$PATH:/path/to/git/on/usb/stick), !

. git, , , , - . git init : warning: templates not found /usr/local/git/share/git-core/templates. , USB-, /usr/local. , , , .

+4

GIT_TEMPLATE_DIR

, $GIT_DIR .

( ):

, --template;

$GIT_TEMPLATE_DIR;

init.templatedir;

:/usr/share/ git -core/templates.

+1

/usr/bin/git /usr/bin/git-shell

, , . ( , otool -L, , , .)

FWIW, Mac OS X 10.8.2 git version 1.7.10.2 (Apple Git-33).

Not sure if this is suitable as an “answer” since I do not plan to leave these links indefinitely. Perhaps I (or someone) can delete this answer in a month or two.

0
source

Apple's command line tools for developers include git, I suppose. You can find them at http://developer.apple.com/ ; You may need a free developer account. Their package will want to install on /usr/bin, etc., but you can use it paxto extract the content wherever you want.

0
source

All Articles