I needed a solution where I had to rename multiple files with git mv, instead of renaming every file first, then use git rm and then git add. Came across a solution that I’ve tweaked to fit my need: