Tag Archives: git

Reorder Git Commits Through Rebasing

The other day I was working on a pull request when I discovered I had forgotten something trivially simple that should have gone in the commit before the one I just made. If I hadn’t have made that other commit, … Continue reading

Posted in Uncategorized | Tagged , | Comments Off on Reorder Git Commits Through Rebasing

Using git rebase onto

Have you ever branched off of master, done some work, committed, pushed, and opened a pull request only to find out your code belongs in some other long-running branch? What do you do? Delete your branch and rewrite your code? … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Easier Bisecting with Tests

You’ve probably used – or at least watched someone use – git bisect before. It’s a great way to track down which commit introduced a bug. It usually looks something like this: git bisect start git bisect good [ref before … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment