Best practice for supporting updated Git (Git by Git) binaries on Mac OS X 10.5?

On my Mac OS X 10.5 (Leopard) machine, I installed Git 1.6.0.2 using git-OSX-Installer from Google Code. The installer installs Git in / usr / local / Git.

Now I would like to keep up with the latest stable version of Git (main branch), currently 1.6.0.3.

Can I run "git clone git: //Git.kernel.org/pub/scm/git/Git.git" from the / usr / local / Git directory, then Configure / Make / Install using Xcode, or this will not work ?

Mostly I'm looking for best practice to keep Git up to the latest stable release.

+5
source share
5 answers

script x- git -update-to-last-version git ( git).

HEAD , git checkout .

git /usr/local/git-v1.6.0.2-287-g3791f77/ (), /usr/local/git/ .

(?), cron ( , OS X 10.5.x), (Lingon - , / launchctrl load ~/Library/LaunchAgents/mylaunchagent.plist)

+9

Git Mac, MacPorts. , MacPorts , , .

+6

git, :

git clone git://git2.kernel.org/pub/scm/git/git.git

cd ~/git.git
git pull
make
make test
sudo make install

, , git git, . cron, .

( , , , , git , , .)

+1

git , , , .

0

script :

sudo git clean -dxf
git pull
make prefix=/usr/local/git all
sudo make prefix=/usr/local/git install

this cleans the files before setting the prefix to my build location (/ usr / local / git)

0
source

All Articles