Skip to content

Instantly share code, notes, and snippets.

@SammyLin
Created January 12, 2012 01:54
Show Gist options
  • Save SammyLin/1598033 to your computer and use it in GitHub Desktop.
Save SammyLin/1598033 to your computer and use it in GitHub Desktop.
[~/Dropbox/RubyProject/tcoc] (master) 39h37m $ rails g model adlist
invoke active_record
create db/migrate/20120112015328_create_adlists.rb
create app/models/adlist.rb
invoke test_unit
create test/unit/adlist_test.rb
create test/fixtures/adlists.yml
[~/Dropbox/RubyProject/tcoc] (master) 39h38m $ git status
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# app/models/adlist.rb
# db/migrate/20120112015328_create_adlists.rb
# test/fixtures/adlists.yml
# test/unit/adlist_test.rb
nothing added to commit but untracked files present (use "git add" to track)
[~/Dropbox/RubyProject/tcoc] (master) 39h38m $ git checkout -f
Your branch is ahead of 'origin/master' by 2 commits.
[~/Dropbox/RubyProject/tcoc] (master) 39h38m $ git status
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# app/models/adlist.rb
# db/migrate/20120112015328_create_adlists.rb
# test/fixtures/adlists.yml
# test/unit/adlist_test.rb
nothing added to commit but untracked files present (use "git add" to track)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment