git remanme folder

C++
git mv <old name> <new name>

Source

Also in C++: