I have a repository with a remote repository.
My colleague had the very bad idea to put 4 project into the same
So basically here is my folder structure:
+ project 1
+ project 2
+ project 3
+ project 4
So I'm trying to separate all theses projects in 4 different git.
But I want to keep all the commit they did for each projects.
For now, I duplicate the root.git on the remote repository and named it
I also duplicate my local repository and set the new remote repository to
I removed the files of projects 2 to 4 and moved to root folder project1
files then commit and push to the remote repo.
Now I want to clean my project1.git so it has only project1 files.
I tried this for each unwanted project:
$ git filter-branch --index-filter \ 'git rm --cached --ignore-unmatch
$ rm -Rf .git/refs/original
$ rm -Rf .git/logs/
$ git gc
but when I compare size pack before and after (using $ git count-objects
-v), it's always the same size. and my size-garbage is still 0
I don't really get how git works.. but i really want to separate the
projects. To give you an idea, projects size are between 100Mb to 5 Gb...
Thanks in advance for the help !
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/groups/opt_out.