git add file # add files for index
git add -i # add files iteratively
git add ignored_file -f # when want add ignored file for commit
git rm --cached file # remove files from index, when doesn't exists on repository yet
| # app/models/person.rb | |
| class Person < ActiveRecord::Base | |
| has_many :person_role | |
| end | |
| # app/models/role.rb | |
| class Role < ActiveRecord::Base | |
| has_many :person_roles | |
| end |
| # === EDITOR === | |
| Pry.editor = 'vim' | |
| # == Pry-Nav - Using pry as a debugger == | |
| Pry.commands.alias_command 'c', 'continue' rescue nil | |
| Pry.commands.alias_command 's', 'step' rescue nil | |
| Pry.commands.alias_command 'n', 'next' rescue nil | |
| Pry.commands.alias_command 'r!', 'reload!' rescue nil | |
| Pry.config.color = true |