git config --global user.name "Henry Lee"
git config --global user.email [email protected]
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
, or
cp /workspace/gits/henry4j-/bin/.gitconfig ~ # DO NOT forget to edit the user name and email
wget -P /tmp/ https://github.com/henry4j/-/raw/master/bin/p4merge
wget -P /tmp/ https://github.com/henry4j/-/raw/master/bin/p4diff
wget -P /tmp/ http://dl.dropbox.com/u/47820156/p4merge-mac-osx-july-2011.zip
unzip -o /tmp/p4merge-mac-osx-2011-july-18.zip -d /Applications/
sudo mv /tmp/p4merge /opt/local/bin/
sudo mv /tmp/p4diff /opt/local/bin/
sudo chmod +x /opt/local/bin/p4merge
sudo chmod +x /opt/local/bin/p4diff
cat <<EOF > ~/.gitignore
*.class
.DS_Store
.p4config
.settings/
bin/
gen/
target/
EOF
Git Reference, Screencast, and Guide
^-^;;;;;