QuestionAnswergit rm --cached file should do what you want.You can read more details at git help rmgit: fatal: I don't handle protocol 'http'How can I archive git branches?