I'm trying to move my entire repo root into a sub-directory, for everything except one file.
For example, I have something like:
root
-Folder1
-Folder2
-.gitattributes
And for all commits and history, I want
root
-ProjectA
--Folder1
--Folder2
-.gitattributes
i.e., I want to move everything except .gitattributes to a subdirectory. If I use
git filter-repo --to-subdirectory-filter ProjectA/
everything gets moved. I can't find the strategy for moving everything except a single file.
How do I keep the file where it is? Or how do I move just that file back up to the root with another command?