Moving files to subdirectory within GIT
Given a GIT repository, how to move files to a new subdirectory?
It’s a situation when you have your project inside /project and you want to move all the files to /project/subdir
Simply dragging the files to a new subdir will not work because GIT will add the same files twice.
All you have to do is:
mkdir -p subdir
git mv * subdir
Please note that
mv * will NOT move hidden files (with dot in the name).