I'm trying to figure out how to work git filter-branch and I need help with some basic Linux scripting commands.
'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
Can anyone break this down for me and explain each part?
I'm most interested in the '|' notation, the && notation, and the sed command.