1

I have deleted a set of files from my local development machine, however they are not deleted on GitHub and are thus showing on my production machine again when I deploy.

How can I force these files to be deleted in the next commit?

Unihedron
  • 10,902
  • 13
  • 62
  • 72
mikewire
  • 41
  • 2

2 Answers2

1

The easiest thing is to use git add -u

It'll remove files that has been manually deleted from your git files. Just commit and pushnormally after that.

Check out the git cheat sheets for others git commands.

And also check that thread: git rm multiple files that have already been deleted from disk

Community
  • 1
  • 1
Lucas
  • 2,886
  • 1
  • 27
  • 40
0

You can use git rm file or git rm -f file if you have already delete the file you have to commit after that

see : http://www.kernel.org/pub/software/scm/git/docs/git-rm.html for more detail on git rm

Charles
  • 538
  • 5
  • 9