Q) How can I delete a file from a Git repository?

A)

The answer is very simple: just delete it in the working directory.

or cmd delete

$ rm myfile.txt