git rm filename

To delete the file from git without removing it from disk, use the --cached flag

git rm --cached filename