Category Archives: Version control system

Convert Subversion repository into git repositories

A long long time ago before git was the dominant version control system (VCS) I used Subversion for quite some time. With git now being the de-facto standard VCS, it was finally time to convert my last remaining subversion repositories … Continue reading

Posted in Version control system | Tagged , | Comments Off on Convert Subversion repository into git repositories

Rewrite author of entire git repository

In git repositories, commit messages contain a person’s email address as an identifier for the user. If the email address used to commit is wrong, you might not want it to be shown in the git repository anymore. In general … Continue reading

Posted in Version control system | Tagged , , , , | Comments Off on Rewrite author of entire git repository

Remove files from git history

When a repository contains files which should have never been committed, it is hard to remove them from the history as git is built to keep a history, not to change it. The following procedure will explain the procedure to … Continue reading

Posted in Version control system | Tagged , , , , | Comments Off on Remove files from git history

Create and merge git branches

Following the philisophy of git, branching is an essential and much used part of the development procedure. When a new feature is developed or a bigger change is to be implemented, a branch is created to work on and later … Continue reading

Posted in Version control system | Tagged , , | Comments Off on Create and merge git branches

Recompress git repository

Git repositories are getting bigger and bigger. To reduce the disk space used by a repository, git provides some housekeeping functionality. Compared to other version control systems, git stores the complete history in each cloned repository if not told otherwise. This can … Continue reading

Posted in Version control system | Tagged | Comments Off on Recompress git repository

Setup gitolite to manage git repositories

Git provides all the required tools to create remote repositories. As explained in Setup gitosis to manage git repositories, a bare repository can be generated and managed manually or with gitosis, but this is not the only git repository management … Continue reading

Posted in Linux Administration, Version control system | Tagged , | Comments Off on Setup gitolite to manage git repositories

Gitosis Arguments to command look dangerous

Dealing with non-English languages, you might come across a couple of issues caused by special characters. Even gitosis has its limitations in this area. One of the error messages caused by special characters is: “Arguments to command look dangerous”. When a … Continue reading

Posted in Linux Administration, Version control system | Tagged , , | Comments Off on Gitosis Arguments to command look dangerous

Gitosis Unsafe SSH username in keyfile

While configuring and using Gitosis you will probably see the following error sooner or later. This error will appear immediately when changed configuration is pushed to the gitosis-admin repository. With this error, the reported user keys are not provisioned properly … Continue reading

Posted in Linux Administration, Version control system | Tagged , , | Comments Off on Gitosis Unsafe SSH username in keyfile

Git repository cluster setup – Part 2

A git cluster with more then two servers with the approach described in Git repository cluster setup will increase the time you need to push changes to the cluster. This is because of the mirroring back. To solve this a more advanced version of the script is needed to avoid that the mirror-server would try to mirror the changes back to the master-server. Continue reading

Posted in Linux Administration, Version control system | Tagged , , , , | Comments Off on Git repository cluster setup – Part 2

Keep track of Linux configuration changes with etckeeper

The configuration of a linux server will change over time. Keeping track of the changes of all the configuration files can be a challenge. etckeeper is a utility that makes this easy. With the help of etckeeper, the complete /etc/ directory is placed … Continue reading

Posted in Linux Administration, Version control system | Tagged , , | Comments Off on Keep track of Linux configuration changes with etckeeper