Here is the Commands Sequence for Renaming or Moving a Directory inside a Git Repository
First you Rename/Move without git:
Second you Remove your Directory from Repo:
git rm -r yourDir
Third you add the Freshly Renamed/Moved Directory:
git add .
Then after a:
You will see listed under “Changes to be commited” the complete Directory Renaming/Moving like:
# renamed: yourDir/... -> yourNewDir/...
Now to Permanently Fix your Renaming/Moving just execute a Commit:
git commit -m "Renaming yourDir yourNewDir"