Can Git restructure my folders without losing history?

前端 未结 3 1822

I got a git repo current I\'m the only one using it. I want to take all files and folder under root folder and put it in a new folder for example:

current root desc<

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 03:19

    You can just move the files and Git will (or should) notice that the move has happened. It will keep the history.

    If it doesn't notice the move for some reason you could try using the diff with --find-copies-harder option.

提交回复
热议问题