Rm

Remove a file from the index as well as working directory so they will stop being tracked.

  • with --cached, only remove it from index.