I would like to keep file history in a repo subfolder. But I need to rename the top level folder name. When I run 'git mv dirName newDirName I get "Fatal: the source directory is empty";
My source directory has the following structure:
gitRepoDir --.git --Source -- -DirLevel2 -- --DirLevel3 -- --DirLevel4 -- --DirLevel5 +++ --DirNameToRename +++ --sub1dir +++ --File +++ --sub2dir +++ --File +++ --sub3dir +++ --File +++ --File +++ --sub4dir +++ --File
Is there a way to rename the top level folder and save the file history in subfolders below? Or do I need to create a directory structure first and then move the files using the git mv command?
git
koderiter
source share