Skip to content

Instantly share code, notes, and snippets.

@altherlex
Last active March 22, 2022 23:13
Show Gist options
  • Save altherlex/46ba72b5c279190c3ed5f123e19ff9b2 to your computer and use it in GitHub Desktop.
Save altherlex/46ba72b5c279190c3ed5f123e19ff9b2 to your computer and use it in GitHub Desktop.
commands
$ git update-index --no-assume-unchanged .gitignore Gemfile Gemfile.lock
$ git update-index --assume-unchanged .gitignore Gemfile Gemfile.lock
$ mysqldump -u username -R oldDbName > oldDbName.sql
$ mysqladmin -u username create newDbName
$ mysql -u username newDbName < oldDbName.sql
# No ruby output during rspec
$ RUBYOPT="-W0" bundle exec rspec spec --exclude-pattern "spec/system/**/*.rb" --force-colour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment