In Depth¶
Leopard Installation¶
THIS IS INCOMPLETE AND OUT OF DATE
Download and run installer
code.google.com/p/git-osx-installer/¶
Setup ~/.profile it should look like this
PATH=“/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/opt/local/bin:/opt/local/sbin”
alias mysqlstart=‘sudo /opt/local/bin/mysqld_safe5 &’
alias mysqlstop=‘/opt/local/bin/mysqladmin5 -u root -p shutdown’¶
export EDITOR=pico
export PATH=/usr/local/git/bin:$PATH
export MANPATH=/usr/local/git/man:$MANPATH
Create Git Clone SVN repository¶
git-svn clone http://code.autistici.org/svn/crabgrass/trunk crabgrass.git
Tracking Another Branch¶
From inside crabgrass.git run
git remote add elijah git://giip3.ucsc.edu/~elijah/crabgrass.git
bc. git remote update
bc. git branch e-unicef elijah/unicef
To determine what branch your in run¶
git branch
Switch branches run¶
git checkout e-unicef
Set up database.yml by creating database.yml and adding socket info¶
cp database.yml.example database.yml
bc. socket: /opt/local/var/run/mysql5/mysqld.sock
To Update¶
git pull
bc. rake db:migrate
bc. rake db:fixtures:load
To Pull down a specific file¶
git checkout "file path"
gitk replacement¶
GitX is a very beautiful native replacement for gitk GUI. It can be downloaded here: http://gitx.frim.nl/