Hg: How to move files (to subfolder) without losing history?

前端 未结 4 566
逝去的感伤
逝去的感伤 2021-02-02 05:43

How to move files (to subfolder) without losing their history?

In my Mercurial repository (I mean the folder with the .hg in it) I have MyProject/ folder with all projec

4条回答
  •  忘了有多久
    2021-02-02 06:17

    In Windows with Tortoise HG installed, there is a windows shell extension that handles this very nicely.

    In Windows Explorer, simply right-click and drag the file(s) you wish to move into the destination folder. You are then presented with a pop-up that give you these choices:

    HG Move versioned item(s) here

    HG Copy versioned item(s) here

提交回复
热议问题