Skip to content

Instantly share code, notes, and snippets.

@talios
Created September 6, 2010 04:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save talios/60d14f45a0b2fb98e641 to your computer and use it in GitHub Desktop.
git filter-branch -f --index-filter \
'git ls-files -s | \
sed "s-module/smx3.api-gitroot/platform/smx3.api-" | \
GIT_INDEX_FILE=/tmp/gitindex git update-index --index-info && \
mv /tmp/gitindex $GIT_INDEX_FILE
'
Rewrite 1456d9fddf42d0cc9c339ab531faef2e4b6b5e44 (1/9986)mv: /tmp/gitindex: No such file or directory
index filter failed: git ls-files -s | \
sed "s-module/smx3.api-gitroot/platform/smx3.api-" | \
GIT_INDEX_FILE=/tmp/gitindex git update-index --index-info && \
mv /tmp/gitindex $GIT_INDEX_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment