Remove a file from git repo

Without deleting the file from the file system

git rm --cached <file>

Deleting the file from the filesystem as well

git rm <file>