Saturday, February 7, 2009

Installing git step by step


Download and install


git-osx-installer

Configure



git config --global user.name "user.name"
git config --global user.email "user.email"
git config --global color.ui auto
git config --global pager.status true
git config --global alias.st status
git config --global alias.ci commit
git config --global alias.br branch
git config --global alias.co checkout
git config --global alias.amend 'commit --amend'
git config --global core.excludesfile ~/.gitignore
echo '.DS_Store' >> ~/.gitignore


Basic workflow



# Create a new repo:
git init

git co master

# Pull upstream if necessary:
git pull

# Create a topic_branch
git br topic_branch

# edit/compile/test

# checkpoint to the index:
git add filename

# Revert file to index:
git co -- filename

# Revert file to master:
git co master -- filename

# Merge in any changes made in master while on topic_branch:
git rebase master

git commit

# Merge topic_branch back to master and delete:
git co master
git merge topic_branch
git branch -d topic_branch


Useful references


Git home
git ready - daily tips for the noob to the guru
git-fu

Sunday, February 1, 2009

File System Overview Doc



File System Overview

Enabling network volume access in Time Machine



defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

Saturday, January 31, 2009

Excellent and inexpensive image editor



Pixelmator

Screen Cast 1
Screen Cast 2

Enabling built-in vnc server



A VNC server is included in Mac OS X 10.4+

Setting global environment variables




defaults write $HOME/.MacOSX/environment "key" "value"


Note: Must log out and log back in to take effect

bash aliases setup



echo 'alias "ls"="/bin/ls -G"' >> ~/.bash_profile
echo 'alias "ll"="/bin/ls -lG"' >> ~/.bash_profile

Finder Button to Show/Hide Hidden Files



Finder Button to Show/Hide Hidden Files in OS X

Friday, January 30, 2009

Firefox setup





Use MultiFirefox to launch profile specific Firefox sessions:
MultiFirefox

Create a new developer profile by launching MultiFirefox and selecting "Show ProfileManager":


Create a new developer profile:

Web developer addons: