1
0
mirror of https://github.com/balkian/gists.git synced 2024-12-24 23:28:13 +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>
cd <your_submodule>
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 \