1
0
mirror of https://github.com/balkian/gists.git synced 2024-11-24 02:12:29 +00:00
This commit is contained in:
J. Fernando Sánchez 2015-02-27 10:12:15 -08:00
parent 8aa49ff90a
commit 4805cb0c9e

View File

@ -1,11 +1,13 @@
# Create a submodule from a specific folder #GIT MAGIC
## Create a submodule from a specific folder
``` ```
git clone <your_project> <your_submodule> git clone <your_project> <your_submodule>
cd <your_submodule> cd <your_submodule>
git filter-branch --subdirectory-filter 'path/to/your/submodule' --prune-empty -- --all 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 \ git filter-branch --force --index-filter \