-3

I want to delete a file in git. But also I want it to be seen in the history. Can I just right click, delete and then commit it? Or, is there a command for that?

pjmorse
  • 9,204
  • 9
  • 54
  • 124
ilhan
  • 8,700
  • 35
  • 117
  • 201
  • 1
    possible duplicate of [How to remove a file from the index in git?](http://stackoverflow.com/questions/2223308/how-to-remove-a-file-from-the-index-in-git) – pjmorse Sep 23 '14 at 14:04
  • @pjmorse its what I don't ask. It asks the opposite one. So the question you are pointing is not related with my question. – ilhan Sep 23 '14 at 21:54

1 Answers1

2

You should use git rm, then commit

git rm abc.txt

http://git-scm.com/docs/git-rm

palazzo train
  • 3,229
  • 1
  • 19
  • 40