Skip to content

Instantly share code, notes, and snippets.

@chadly
Last active August 29, 2015 14:05
Show Gist options
  • Save chadly/44deb33fa08692a2f6f3 to your computer and use it in GitHub Desktop.
Save chadly/44deb33fa08692a2f6f3 to your computer and use it in GitHub Desktop.
Merge prop components back to civicsource
#!/bin/bash
PREFIX=src/CivicSource/CivicSource.Web/CivicSource.Administrator.Web/Content/scripts/property
git filter-branch --index-filter '
git ls-files -s |
sed "s,\t,&'"$PREFIX"'/," |
GIT_INDEX_FILE=$GIT_INDEX_FILE.new git update-index --index-info &&
mv $GIT_INDEX_FILE.new $GIT_INDEX_FILE
' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment