$ git rm –cached [file]
Removes the file from version control but preserves the file locally.
$ git rm [file]
Deletes the file from the working directory and stages the deletion.
$ git my [file-original] [file-renamed]
Changes the file name and prepares it for a commit.