What is the difference between hg forget and hg remove?

前端 未结 5 831
南旧
南旧 2020-11-28 01:52

I want mercurial to remove several files from the current state of the repository. However, I want the files to exist in prior history.

How do forget an

5条回答
  •  伪装坚强ぢ
    2020-11-28 02:36

    A file can be tracked or not, you use hg add to track a file and hg remove or hg forget to un-track it. Using hg remove without flags will both delete the file and un-track it, hg forget will simply un-track it without deleting it.

提交回复
热议问题