Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
doc:gayas-random-stuff [2014/03/17 15:18] gkazhoyadoc:gayas-random-stuff [2014/03/17 15:19] gkazhoya
Line 71: Line 71:
   cd REPO   cd REPO
   git filter-branch --prune-empty --subdirectory-filter MY_DIR -- --all   git filter-branch --prune-empty --subdirectory-filter MY_DIR -- --all
-  git filter-branch --index-filter 'git ls-files -s | sed "s-\t\"*-&newsubdir/-" | GIT_INDEX_FILE=$GIT_INDEX_FILE.new git update-index --index-info && mv "$GIT_INDEX_FILE.new" "$GIT_INDEX_FILE"' HEAD+  git filter-branch --force --index-filter 'git ls-files -s | sed "s-\t\"*-&newsubdir/-" | GIT_INDEX_FILE=$GIT_INDEX_FILE.new git update-index --index-info && mv "$GIT_INDEX_FILE.new" "$GIT_INDEX_FILE"' HEAD
                                                                          
   roscd REPO2   roscd REPO2