My favorite Git alias

My favorite git alias: gcm to git checkout main|master, fetch, and pull < View plain text > bash # checkout to default branch gcm() {     git fetch && git checkout $(git remote show origin | sed -n '/HEAD branch/s/.*: //p') } (Put this in your .bashrc or something)

Got Git Tshirts?

I said the other day that I wanted Git t-shirts, because when I like something, I want t-shirts of it. I couldn't find any. So I made some: Git t-shirts The Git logo by Jason Long has a very permissive license (CC BY) that allows practically anything as long as the author's name is mentionned. And to be extra sure,…

Efficient Git Setup on Windows

I think I've set up a pretty efficient Git environment on Windows and, as promised in a previous post about my Git initiatic journey, I'm sharing it, hoping it'll be useful to someone. Another quite lengthy post I'm afraid, feel free to grab a cup of something before you start reading.

So, I’ve Tried Git. And it’s…

I'm a SVN user. Nowadays, all the cool kids have a Github account where they host stuff and use Git as their primary Source Control tool, and prefer it over the usual SVN you've probably got to use. I'm not a cool kid and for the last few years (since WordPress started the plugin repository using SVN I think —…