Make git work better with GitHub

A few months ago I installed a command line utility called hub. I’m really fond of it. It’s aim is to make it easier to interact with GitHub from the commandline. It’s a wrapper around the standard git command. Once it’s installed you can do stuff like this (take from the manual page) # clone […]

Continue reading →

Lesser known git commands

Tim Pettersen shares some of his git aliases. Git has a strong commitment to backwards compatibility: many powerful features are hidden behind options rather than exposed as default behaviour. Fortunately Git also supports aliases, so you can create your own commands that do all manner of Git magic. Here’s a selection of the more useful […]

Continue reading →

How to create custom git aliases for a project

In a short post on his blog Joeri Timmermans explains how to create per project git alias that can be shared with a team. http://www.pix-art.be/post/how-to-create-custom-git-aliases-for-a-project Freek Van der Herten Freek Van der Herten is a partner and developer at Spatie, an Antwerp based company that specializes in creating web apps with Laravel. After hours he […]

Continue reading →

Git from the inside out

This essay explains how Git works. It assumes you understand Git well enough to use it to version control your projects. The essay focuses on the graph structure that underpins Git and the way the properties of this graph dictate Git’s behavior. Looking at fundamentals, you build your mental model on the truth rather than […]

Continue reading →

Clone your package inside the vendor directory

Dimitrios Savvopoulos, the creator of the laravel-translatable package (which I use in almost every project), shared a very nice tip on how to develop a package while it is installed as a requirement. If you have write access to a composer package repository, you have the possibility to continue its development while it is installed as requirement in another […]

Continue reading →

Most common git screwups/questions and solutions

A handy list for when versioned shit hits the fan. http://41j.com/blog/2015/02/common-git-screwupsquestions-solutions/ Freek Van der Herten Freek Van der Herten is a partner and developer at Spatie, an Antwerp based company that specializes in creating web apps with Laravel. After hours he writes about modern PHP and Laravel on this blog. When not coding he’s probably rehearsing […]

Continue reading →

25 Tips for Intermediate Git Users

As someone who’s always felt fairly comfortable in Git, I thought sharing some of the nuggets I learnt with the community might help someone to find an answer without needing to do lots of research. https://www.andyjeffries.co.uk/25-tips-for-intermediate-git-users/ Freek Van der Herten Freek Van der Herten is a partner and developer at Spatie, an Antwerp based company […]

Continue reading →

Create a global .gitignore

Probably you’re using a .gitignore file for every project. If you find yourself creating a .gitignore file for the same files on every project you should use a global .gitignore file. You can specify the location of the global .gitignore file with this command: git config –global core.excludesfile ‘~/.gitignore’ If you’re on osx you can add files […]

Continue reading →