Git allows you to do a binary search across commits to hunt down the commit that introduced a bug.
See our new comprehensive guide to upgrading every Rails 2 version ever.
If you need to find out which of your local commits are not on the remote server do this:
The ‘merge.*.driver` variable’s value is used to construct a command to run to merge ancestor’s version, current...
Every time you amend, rebase or reset, git commits get "overwritten". However, git still allows you to checkout those commits...
When you eagerly load an association list using the .include option, and at the same time have a .where on...
If you modified git's history and the change was already pushed, you will usually get a ! [rejected] my-branch...
To change the commit message of the latest (unpushed, unmerged) commit, you can use git commit --amend
Lets say you need to make a change to a commit OLD_COMMIT, but this is not the most recent...
This card explains how to install RubyMine for the first time. If you want to upgrade an existing RubyMine installation...
In order to go back one page in your Cucumber tests, you can use the following step definition for Capybara...
To change a commit message of the most recent (unpushed) commit, you can simply use git commit --amend -m 'new...
Plugins (and gems) are typically tested using a complete sample rails application that lives in the spec folder of the...
This collection of Sass mixins enables cross-browser styling (including IE with CSS3PIE) with less lines of code.
Added utility methods for the Prototype Javascript framework.
Fixes all Flash elements on a page so that they heed DOM stacking order
This will stash all modifications that you did not git add: git stash -k Note that newly created (and non...
For clarity and traceability, your commit messages should include the ID and title of the Pivotal Tracker story you're...
To only run the next two migrations: rake db:migrate STEP=2 To revert the previous two migrations:
If you need to revert only parts of one or several commits the following workflow can help:
git diff commit_hash -- path/to/file Provide any commit hashes or branch names like "master" for commit_hash.
To install webmock 1.5.0: sudo gem install webmock --version "=1.5.0" or sudo gem install webmock -v "=1.5.0"
After switching to Rails 3 you may get a LoadError with the following message when trying to use your application...
I prefer the application that I'm currently working on to be reachable at http://localhost/. So when I switch...