Change multiple files extension with git

for i in $(find . -iname "*.inc"); do
    git mv "$i" "$(echo $i | rev | cut -d '.' -f 2- | rev).php";
done