From 4805cb0c9ec7c1371b941302a773b8a91a596824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Fri, 27 Feb 2015 10:12:15 -0800 Subject: [PATCH] --- Git magic.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 \