This command should do the magic:
$ git mv <old name> <new name>
Additional info, case sensitive renaming —eg. from newname to NewName:
Follow these steps:
$ git mv newname tmp
$ git mv tmp NewName
Remember this has to be followed by commit and push.