Tag Archives: git

Commit Messages

When reviewing a commit I’m not interested in what you did. A commit is a codebase transformation. I’m interested in what will happen to my codebase when I apply your commit. Bad “I did this” form: I had a cup of coffee, went for a walk, and changed some code.   Better “This commit does this” form: Adds unmap() to the command map API. A commit message should describe the commit, not the process you went through to create it … Continue reading

Posted in Banter, Code | Tagged | Leave a comment

Linking to your GitHub code

It’s pretty easy to link directly to a line of code in your GitHub repo: robotlegs/robotlegs-framework/blob/master/src/org/robotlegs/core/IContextProvider.as#L16 Don’t do that you naughty sausage! Your codebase will evolve (if all goes well), and line 16 will be replaced by a newer, shinier string of characters. Or, in this case, it’ll point to something that no longer exists. This, on the other hand, is more likely to stick around to haunt its author (me): robotlegs/robotlegs-framework/blob/v1.1.2/src/org/robotlegs/core/IContextProvider.as#L16 Select a tag before you link to your … Continue reading

Posted in Banter, Robotlegs | Tagged , , , | Leave a comment

OS X Git Prompt

I’m currently using a modified version of git-prompt that looks something like this:

Posted in Resources, Tutorials | Tagged , , , , | 7 Comments

Getting Started with Git on Mac OS X

Some Background I’ve recently switched from using SVN to using Git as my source control management tool of choice. It took a little while to get to grips with, but it rocks! Git is not an evolution of SVN. It is entirely different. Git is a distributed revision control system – everybody working on a project has their own full copy of the repository and its entire history.

Posted in Resources, Tutorials | Tagged , , , , , , | 20 Comments