Getting my HEAD around Git

Since getting involved in a Python development project at work, I’ve also had to start using Git.

There’s a lot about Git that I don’t fully understand, but I found the term ‘HEAD’ and the concept it refers to particularly opaque until I had a chat with a colleague about it.

Apparently, HEAD can be viewed as the currently checked-out branch, ie the one that you’re working on. My understanding is that HEAD is akin to a setting or property that tells Git where to point the details of edits you’ve made.

Just to confuse matters, it seems there is also a difference between ‘HEAD’ and ‘head’; with the uppercase version being the currently selected branch, and there being more than one ‘head’ for each branch in the repository.

A quick search of YouTube brings up this talk about Git, including explanation of key terms like HEAD/head.

Slight tangent, and it may be an old blog post now (2007), but I like Zack Rusin’s Git Cheat Sheet too – I’m a visual kind of person, and the commands sequence diagram suits my ‘scribble it on a whiteboard’ thought patterns quite nicely.

Hopefully the information above will help someone who’s where I was a little while ago, struggling to understand what Git is all about, and developing migraines in the process! Of course, if you feel my interpretation is incorrect, please feel free to leave a comment. Any input or clarification is welcome!

If you like this, please feel free to click one of these fancy sharing buttons:

Back to work

Back to work this week…

There’s lots going on, as ever, and plenty to get stuck into. We’re looking at the entire business intelligence and operational reporting capability that the team and I have been developing, tweaking, evolving and supporting for the past four years that I’ve been here, and before that.

The sheer volume of data and information we now make available has become difficult to assess at a glance, and the senior management team would benefit from a single-page ‘health check’, so that’s what I’m looking into right now.

In all, I’m glad to be back, and getting my teeth into a new project.

If you like this, please feel free to click one of these fancy sharing buttons:

Brave new Ubuntu

With Mark Shuttleworth having closed Ubuntu’s Bug #1 recently, and Canonical raising the heckles of yet more Linux developers and even members of the Ubuntu community by announcing that it is dropping Wayland as the successor to X, in favour of its in-house developed Mir, I wonder if this means we’ll start seeing linux-based malware targeted specifically at Ubuntu distributions.

I hope that’s way off the mark, at least technically, preferably socio-politically as well, but data/financial theft motives aside, there has been a huge amount of malware over the years, designed by malcontents and idealogical opponents of MS, for the sole purpose of bringing down Windows systems en masse. I feel it would be a huge shame if that started happening to Ubuntu-based systems as well.

Just a thought…


If you like this, please feel free to click one of these fancy sharing buttons: