My Git notes for Rails 1

Posted by mikong on December 17, 2007

From Toolman Tim’s blog entry Setting up a new Rails app with Git (with a few changes, and summarized for personal reference).

$ git init
$ mate .gitignore

Add in .gitignore:

log/*.log
tmp/**/*
.DS_Store
doc/api
doc/app
config/database.yml
db/schema.rb

Back to the command line:

$ cp config/database.yml config/database.yml.example
$ touch log/.gitignore
$ touch tmp/.gitignore
$ git add .
$ git commit -m "Initial commit"

Additional Notes:

  find . \( -type d -empty \) -and \( -not -regex ./\.git.* \) -exec touch {}/.gitignore \;
Trackbacks

Use this link to trackback from your own site.

Comments

Comments are closed.

  1. Francisco Tue, 29 Jul 2014 02:58:33 UTC

    < a href = “http://google.com/?p=45&lol= temptingly@lead.twisty”>.< / a >…

    ñïàñèáî!!…