Rails project git

Install git in Ubuntu

sudo apt-get install git

Add default setting

Rails project

Move to your application root

git init

Rails project has already good .gitignore
After it, you can push your rails application to your git server

Commit

git add .
git commit -m "Mesage"

One command

git commit -a -m "Message"

Branch

git checkout -b branchname

Merge master

git checkout master
git merge branchname
git push

Others

I picked up several git use case in here