I recently ran into an issue where I needed to expand my git repository. The first idea I had was to move .git to a new location. I went through a couple of relevant posts and I was a bit surprised no one else brought it up.
Consider the following directory structure:
- root
- a
- ...
- b
- .git
- ...
If I wanted to expand my repo to include everything in root, why not just move .git there? Is that a good or a bad idea? Will doing this keep my commit history intact? What are some potential side effects?
I would like to know what could potentially go wrong if I were to try this.