api.rubyonrails.org

When working with custom transactions and use ActiveRecord::Rollback you may encounter unexpected behaviour if you try to roll back...

If you are fine with the default console diff most of the time but only sometimes want to use an...

If you want to find the commits that touched a specific text in a file, use git log -S 'text...

Using the -U parameter you can change how many lines are shown above and below a changed section.

You might get the above error message when cloning certain git repositories (for example the rails repository). It indicates that...

github.com

We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...

Similar to our snippet that runs all Cucumber features matching a given string, the following will run all modified or...

makandra dev
ohshitgit.com

Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible. Git documentation...

You want Spring for super-fast binstubs like bin/rails or bin/rspec which avoid Rails boot time. You want parallel_tests...

makandra dev

Sometimes you might need to nest a git-project inside another git-project. The right strategy is to use submodules...

When you run rake db:rollback and nothing happens, you are probably missing the latest migration file (or have not...

makandra dev

If you're trying to searching or installing packages via pkg the your repository data might be broken. If pkg...

Instead of using this hack you might want to use MariaDB 10.x which can work with both old and...

ombulabs.com

Tool to show you which gems are slow to load: ➜ git:(master) ✗ bundle exec bumbler [################################################# ] (49/65) travis-lint...

makandra dev
github.com

Git commands tend to come in groups. Avoid typing git over and over and over by running them in a...

explainshell.com

Enter any command into explainshell and it will explain it to you: split into separate commands (if present), with each...

stackoverflow.com

First, decide if you want to pull with rebase. There are some implications of changing this, so think before you...

makandra dev

Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...

You can tell git to ignore different kinds and amounts of whitespace when merging or cherry-picking. This often occurs...

makandra dev
github.com

Remove some old binaries (commands still exist in geordi) and mark others as deprecated Rewrite deploy command to support...

makandra dev

When you're using feature branches, they will stack up if you don't delete them after the merge to...

unix.stackexchange.com

As described by the linked Stackoverflow answer, run these commands: sudo add-apt-repository ppa:git-core/ppa -y

makandra dev
stackoverflow.com

When there's a Gemfile.lock in your working directory that you cannot remove by either checkout, reset [--hard], stash, probably...

github.com

Live markdown previewer (with Github flavored syntax) for VIM. Will open a preview in your browser and update automatically on...