User Tools

Site Tools


en:astuces:git

Git stuff

Create a subrepos from a larger repos

Clone the main repository in a separate directory:

git clone git@github.com:jvehent/bigproject.git

Keep only the subdirectory for Project1

git filter-branch --prune-empty --subdirectory-filter Project1 -- --all
en/astuces/git.txt · Last modified: 2024/04/17 10:19 by 127.0.0.1