Git: How to start a new rails project and put it on GitHub
Montag, 11. April 2011, 20:30 Uhr | roberto@vasquez-angel.de |Create a new Rails project:
$> rails new <project_name>
Put your rails project under local version control:
$> cd$> git init . </pre> Edit the .gitignore file: .bundle db/*.sqlite3 log/*.log tmp/**/* doc/api doc/app *.swp *~ .project webrat.logCommit:$> git add . $> git commit -am "Initial commit"Go to [GitHub](http://www.github.com) and create a new project Add your github master: $> git remote add origin git@github.com:/ .git $> git push -u origin master That's it! After that, a regular commit looks like that: $> git add . $> git commit -am "Your commit message"Pushing to GitHub:$> git push