Skip to content

Instantly share code, notes, and snippets.

@dougal
Created March 9, 2009 13:25
Show Gist options
  • Save dougal/76242 to your computer and use it in GitHub Desktop.
Save dougal/76242 to your computer and use it in GitHub Desktop.
phoenix:Desktop dougal$ rails foo
[...]
phoenix:Desktop dougal$ cd foo
phoenix:foo dougal$ mv config/database.yml config/database.yml.example
phoenix:foo dougal$ echo "config/database.yml" > .gitignore
phoenix:foo dougal$ git init
Initialized empty Git repository in /Users/dougal/Desktop/foo/.git/
phoenix:foo dougal$ git add .
phoenix:foo dougal$ git commit -a -m "Initial commit."
Created initial commit 07db11f: Initial commit.
47 files changed, 8531 insertions(+), 0 deletions(-)
[...]
phoenix:foo dougal$ cp config/database.yml.example config/database.yml
phoenix:foo dougal$ git st
# On branch master
nothing to commit (working directory clean)
phoenix:foo dougal$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment