Quantcast
Channel: Version Control – PHP Developer
Browsing latest articles
Browse All 20 View Live

Find Git commits by email address

Often in Git you’ll want to find a list of commits from a given author or organisation. Fortunately this is a simple enough task with two arguments to git log: git log --oneline...

View Article



Deleting branches in Git

For some projects, the workflow I use in Git is to create a new branch for every new feature or bug fix. This works well for keeping things separate, but it does result in a lot of branches lying...

View Article

Adding a progress bar to Mercurial

Most open source projects seem to use Git, but there are a few which have opted for Mercurial instead, most notably Mozilla projects such as Firefox and Thunderbird. For some inexplicable reason,...

View Article

Configuration management with Ansible and Git slides

Earlier this week I delivered a talk entitled Configuration Management with Ansible and Git at the FLOSS UK Spring conference. I’ve now uploaded the slides for my talk, which you can view along with...

View Article

Charging for training notes?

Earlier this year I delivered a half-day workshop entitled Configuration Management with Ansible and Git. I spent a lot of time preparing the notes for the workshop, and as a result I’ve got a 22 page...

View Article


Training courses under development

About a month ago, I posted about the possibility of charging for training notes. Based on the feedback I received via Twitter, I’ve decided to make all future training notes available for free, with...

View Article

Self-hosted Git using SSH

Most of my Git needs are met by GitHub (public) and BitBucket (private), but occasionally I want to hold confidential data on a server which I control. There are self-hosted options available, such as...

View Article

Copying a file from another branch in Git

Copying a file from another branch into my current branch is something I do every so often in Git, e.g. when I want to reset a file in staging to match that of master. Fortunately Git makes this easy:...

View Article


Git commits made directly to branch

Sometimes in Git I’ll need to synchronise a long-lived feature branch with master to reduce the likelihood of merge conflicts at a later date. One of the problems with doing this is that git log is...

View Article


Moving unstaged changes to another branch in Git

If you move around between different branches a lot in Git, you might find that you accidentally make some changes on the wrong branch and only realise this when it comes to stage/commit them. As...

View Article
Browsing latest articles
Browse All 20 View Live




Latest Images