Committing

Removing & Renaming Files

To remove the version control completely you have to remove the .git folder

$ rm -r .git

To check if the .git folder has been removed, run the command

$ ls -a

To remove a specific file, run

$ git rm _FILE_NAME_

To remove a file from the staging area, run

$ git rm -f _FILE_NAME_

To keep the file on the hard drive but not have Git track it anymore

$ git rm --cached _FILE_NAME_

Renaming a file is the same as moving it to a different place

$ git mv _FILE_FROM_ _FILE_TO_