I know there are many similar topics to this one, but I couldn't find an answer to my situation. Using git 1.8.3.1 I have a git repo in:
/path/to/my/git/repo/.git
I want to move the repository to /path/.git
while preserving the history of the original repo + adding new files from the new root directory. I've tried simply moving the .git folder to the appropriate place, re-add all files and committing but I've lost the history of my original repo.
How can I do this properly? (filter-branch?)
Thanks
UPDATE #1 My intention is to keep the files where they are, and expand the repo to include its parent directories + keeping history of the nested files:
Old repo: /path/to/my/git/repo/
New repo: /path/
UPDATE #2 I was thinking maybe there is a simpler solution than this, without moving actual files.