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


git add .
git commit -m "Mesage"

One command

git commit -a -m "Message"


git checkout -b branchname

Merge master

git checkout master
git merge branchname
git push


I picked up several git use case in here