How to automatically run unit tests from a git push

Tags:

Typically when working on code that has tests, you would want to make sure your tests pass when you share your code with other people. It’s generally a good idea to run the tests once in a while too, but why do it manually when you can automate? In this post I’ll show a simple shell script you can use …

Git interactive rebase tips

Tags:

Interactive rebase is one of my most used Git commands. It’ll let me slice and dice commits in various useful ways. Here’s a few tips for you to unleash the true potential of rebase :) Basics: editing, combining, reordering and removing commits Breaking a commit into two Taking a part of a commit and bringing it to HEAD Bonus! How …

Git tips for SVN users

Tags:

SVN is the version control system I’ve used the most, but lately I’ve been using Git more and more. I’ve also been using Git with projects that have an svn repository thanks to git’s built in svn support. While working with it, I’ve ran into several typical cases that I’ve often needed to deal with, that I haven’t encountered with …

Should I try Git if Svn/CVS/other works for me?

Tags:

I’ve been using Subversion for quite a while, and while it has some minor annoyances like complex merging, it never really bothered me. Then along comes Git, touting that it’s easy and that you’re stupid if you don’t use it. The technical stuff people said about it were impressing, but not enough to actually warrant trying it for me – …