Enable colors:
git config --global color.ui true
Use colors in diff:
git config --global color.diff auto
Use colors in status:
git config --global color.status auto
Use colors in branch:
git config --global color.branch auto
Make st an alias for status:
git config --global alias.st "status"
Make ci an alias for commit:
git config --global alias.ci "commit"
Here are the steps to host your Git project on a Dreamhost account, without the use of Webdav:
Now you’re done with the server side. This step assumes that you already have a local Git repository (e.g., you did a git init and committed at least one revision on it.) On your computer you’ll need to change your Git config inside your project to have the following:
[remote "hostname"]
url = ssh://username@server.dreamhost.com/~username/hostname/project
fetch = +refs/heads/*:refs/remotes/dreamhost/*
push = refs/heads/*
Or you can simply:
git remote add hostname
ssh://username@server.dreamhost.com/~username/hostname/project
Just be sure to change username to your Dreamhost username (twice in that row), server to the Dreamhost server you are allocated (or you can replace the whole thing with your own hostname, but you’ll still need to put it on the path), hostname is your hostname directory and project is the name of the project you created in the server. Once you updated your config, do:
$ git-update-server-info
$ git push hostname master
It should work at this point. Note that I have changed my SSH to be passwordless, so you may find an issue if you don’t.