How to partially revert a commit in git?

Reverting commits in git is quite simple if you want to revert a whole commit. But how to partially revert a commit? In this blog I want to show you a safe approach to partially revert a commit.
By |April 19th, 2015|Git|0 Comments

GitDirStat – a git maintenance gui

Some time ago I wrote the blog “Remove directories and files permanently from git”. Removing files from a git history is not an unusual task and I thought that it would be nice if there is an easier and faster way to do it. I thought that there should be a gui that help you to find […]

By |December 28th, 2014|Git|0 Comments

A git checkstyle pre-receive hook

When multiple developers work on one project it is also essential that they all commit source code that matches some formatting rules. Otherwise reviewing changes and merging source code can be a great challenge.

When using git repositories you can install hooks. Hooks are any kind of executables that can be run before something happens […]

By |December 7th, 2014|Git|0 Comments

How to create an independent branch in git

In a git repository everything normally starts with an initial commit and all other commits are ancestors of this first commit. But is it possible to create a second initial commit or even a third? Another initial commit with a complete different working directory? Yes it is.
By |November 23rd, 2014|Git|0 Comments

Remove directories and files permanently from git

Some day you might want to remove files or directories from git permanently, because someone committed sensitive data or large binary files that should not reside in the repository to keep clone times short.  In this blog I want to show you how to delete directories and files permanently from a git repository.

The first chapter […]

By |July 17th, 2014|Git|3 Comments