Other consequences of `git push –force`?

To complement torek’s excellent answer: A force-push can cause problems with later merges. The problem: If you force-push a branch A, you are removing some existing commits from that branch (otherwise you would not need to force). If (as described in torek’s answer) these commits are also referenced from another branch B, then they will … Read more

Limiting file size in git repository

As I was struggling with it for a while, even with the description, and I think this is relevant for others too, I thought I’d post an implementation of how what J16 SDiZ described could be implemented. So, my take on the server-side update hook preventing too big files to be pushed: #!/bin/bash # Script … Read more

Moving SVN repositories data with history as subfolders into another repository

There are two ways to accomplish the task. Depending on Subversion server distribution and task complexity you may find one of them easier or more convenient than the other. Filtering repository history with svndumpfilter tool The solution is quite tricky because Subversion repository history filtering works based on paths you specify to include or exclude … Read more

How to convert a Git repo to a submodule, which is nested in another (parent) Git repo?

Change to the main directory, checkout the master branch, and do the following Git command to create a new submodule for plugin1: git submodule add (url_to_plugin1_repository) subdirectory1/plugin1sm Here the “url_to_plugin1_repository” points to your current Git repository for plugin1. A new directory will be created call subdirectory1/plugin1sm, which will track your remote repository. I have given … Read more