
for d in */ ; do

	if [ -f  $(pwd)/$d/.htaccess ] 
	then
		echo "$d has an htaccess"
		cd $d
		echo "in $(pwd)"
		git add .htaccess
		git commit -m "pushing htaccess file"
		cd ..

	else
	    echo "Error: $d has no  htaccess"
	fi

done

