10/19/2008

GIT, yes, another source control solution

and you thought Subversion was the latest thing. Ha. How old and slow you are.

You see how cool I can sound when I have just learned something new?

I have GIT installed and working under OSX Leopard and it seems pretty cool so far, given that I haven't done anything worth while with it yet.

First, don't do what I did, which was to goto github, download gitx and expect it to work. Ha, that route is for losers.

Instead, goto the git site itself and get the zip.gz file and go from there. Wait, no, don't do that either, only losers waste time compile from source.

See, how many pit falls I am saving you. This is a great blog.

So, ignore the links you have seen so far and aim for the Download link. This will not down the file, do not worry about that.

Amongst the download formats there is an OS X entry to the Google code site. Be patient, you are on the right track.

There, at the top of the list, is the git-1.6.0.2-intel-leoard.dmg file. Yes, this is the real download that will work. The download for non-losers like you.

This will give you command line GIT which is probably all you need, if you are a loser. I was a loser for a short time when I finally realized what I was doing. Man oh man these things take time to work out.

I love NetBeans. I also love Eclipse but its Ruby support blows by comparison so I love NetBeans more. And NetBeans has a GIT plugin. This is for non-losers. It's called nbgit.

Now remember, losers will try to install nbgit in their NetBeans IDE, and we all know that would be a dumb move. Unless you really love searching through reams of dependency errors, and what the hell is the NetBeans Presentation crappy thing that I don't have anyway.

Go get NetBeans 6.1 and install that first. Then, as a non-loser, you will be selecting Tools-Plugins-Downloads and selecting the nbgit nbm file that you download earlier.

git clone git:/reality
update to life version niner dot niner
git diff
See all the good changes that you have made
git commit


And here, courtesy of the kind blogger Tim Dysinger, are some cool git settings that you might want to use.

Get started with this tutorial, short and to the point.

3 comments:

Anonymous said...

gitx is just Mac OSX/Cocoa port of gitk witch is a UI layer that interacts with git. The best way to install git on Leopard is using macports:

sudo port install git-core +svn

That includes the git-svn bindings you will certainly need. :)

Edward Sumerfield said...

Thanks Ryan.

sudo port install git-core +svn
...
---> Verifying checksum(s) for sqlite3
---> Extracting sqlite3
---> Configuring sqlite3
---> Building sqlite3 with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/work/sqlite-3.6.4" && gnumake all " returned error 2
Command output: sed -e s/--VERS--/3.6.4/ ./src/sqlite.h.in | \
sed -e s/--VERSION-NUMBER--/3006004/ >sqlite3.h
/usr/bin/gcc-4.0 -O2 -o mkkeywordhash -DSQLITE_OMIT_LOAD_EXTENSION=1 ./tool/mkkeywordhash.c
./mkkeywordhash >keywordhash.h
/usr/bin/gcc-4.0 -O2 -o lemon ./tool/lemon.c
cp ./tool/lempar.c .
cp ./src/parse.y .
./lemon -DSQLITE_OMIT_LOAD_EXTENSION=1 parse.y
mv parse.h parse.h.temp
f ./addopcodes.awk parse.h.temp >parse.h
/bin/sh: f: command not found
gnumake: [parse.c] Error 127 (ignored)
cat parse.h ./src/vdbe.c | -f ./mkopcodeh.awk >opcodes.h
/bin/sh: -f: command not found
cat: stdout: Broken pipe
gnumake: *** [opcodes.h] Error 127

Error: The following dependencies failed to build: p5-svn-simple subversion-perlbindings apr-util sqlite3 cyrus-sasl2 neon serf subversion p5-term-readkey rsync popt
Error: Status 1 encountered during processing.

Anonymous said...

i think that may have happened before too, but don't remember it happening to me when i upgraded to 1.6.x. Try doing

sudo port sync
sudo port install git-core +svn

and see if you get different results. If not, well, I'm not completely surprised. :)