The Git cookbook

Git, you either love it for its power or hate it for it's ui. While I'm a trained git apologist and love its power and flexibility, I've also done a lot of git user support at work and in the #git IRC channel. I understand the frustration of the jumble of jargon, inconsistency and arcana that is the git UI and will help you dive into it!

If you have questions, comments or suggestions about any of the articles, please leave a comment on the article or in the issue tracker on GitLab. Suggestions for new articles are also very welcome!


How to back up a git repository

Posted on Mon 07 December 2015 in Repository maintenance • Tagged with backupLeave a comment

Backing up a git repository isn't as simple as cloning it, even creating tarballs may not be good enough for backing up. And if you think rsync has got you covered, think again! Let's explore some backup methods and how to break their assumptions with git. Of course we also explain how to correctly back up a git repository.

Continue reading

Deleting branches that have been merged

Posted on Sat 07 November 2015 in Repository maintenance • Tagged with branch, remoteLeave a comment

Learn how to to find branches that have been merged into your main branch and how to delete them.

Continue reading

Getting rid of submodules

Posted on Sat 07 November 2015 in Repository maintenance • Tagged with submodulesLeave a comment

Getting rid of submodules is as cumbersome as any submodule operation. So let's have no more of it and delete some submodules.

Continue reading