move all files of current directory into subdirectory and maintain history

前端 未结 7 1114
不知归路
不知归路 2021-02-05 03:00

How can I move all the files of my current directory into a new directory and retain the history.

I have tried:

git mv . old_app

But I

7条回答
  •  旧时难觅i
    2021-02-05 03:40

    I want to move all png files to images subdirectory in the local and remote repo:

    mkdir images
    git add *.png
    git mv  *.png ./images
    git commit -m "move"
    git push -u origin master
    

提交回复
热议问题