diff --git a/Git magic.md b/Git magic.md index 2ef1957..10cfced 100644 --- a/Git magic.md +++ b/Git magic.md @@ -1,11 +1,13 @@ -# Create a submodule from a specific folder +#GIT MAGIC + +## Create a submodule from a specific folder ``` git clone cd git filter-branch --subdirectory-filter 'path/to/your/submodule' --prune-empty -- --all ``` -# Remove a file from history +## Remove a file from history ``` git filter-branch --force --index-filter \