after for a in *; do git rm -r --cached $a/target; done; for a in *; do git rm -r --cached $a/bin; done; and added slashes to .gitignore bin and target entries