make remote reflect local folder structure

I changed the folder structure around manually without using “git mv”.

git gets all confused when you don’t use that command. After pushing, this is what the repo looked like

still had all the old files.

function remove_all {
	for file in `git ls-files`;do
		if [ ! -e $file ];then
			echo $file;
			git rm $file;
		fi
	done
}

This code removed all tracked files that didn’t exists locally.

Leave a Reply

Your email address will not be published.