I created too many folder layers, so now I need move the project up by one layer. Here is what I have for folder structure.
OMDM/OKE/OKEPortal
I would like the new structure to look like this while keeping the Git record history.
OMDM/OKEPortal
I have used the Git commands below, but it ends up changing the folder name instead of moving it.
git mv OKEPortal OKE
git add OKEPortal
Somehow, it always ends up changing the folder name.
Update:
While I'm in OMDM directory, i run the below commands
mv OKE/OKEPortal OKEPortal
rm -r OKE
git add OKEPortal
I think before I didn't get the result that i wanted because I didn't put the folder path correctly when executing "git mv OKEPortal OKE
" thus it always changed the folder name from OKEPortal to OKE. It was my mistake. The source and destination directory should not be the same else it will rename the folder instead of move.