Remove data from a git history

Preliminary note: this note applies to a simple git repository. For a gitlab repository, please refer to https://docs.gitlab.com/ee/user/project/repository/reducing_the_repo_size_using_git.html. gitlab (and possibly other forges based on git) tends to be protective, in order to keep track of the events in the repository and to prevent discrepancy on its data.By example, a…

Continue reading

How to move directory from a git repo to another

This post is a copy from Matthias Schoettle’s blog Let us just moved one directory within a Git repository to a directory within another repository including its history. For example: repositoryA/ « `console ………../directoryToKeep ………../otherDirectory ………../someFile.ext repositoryB/ ………../someStuff The goal is to move directoryToKeep into repositoryB with its history, i.e., all…

Continue reading