I work on several git repositories with each remote repository stored on a shared network drive. My local clones of the repositories are stored in a "repos" folder on a "work location" computer connected to that network. I want to use a removable drive to transfer the current state of that entire repos folder to a "home location" computer that is not connected to the shared network. I also need to reverse the processes to take any changes back to the "work location" computer (where I can eventually push changes back to the remote repositories on the shared drive).
While there are various ways to do this, I want to know if I could make the entire repos folder into a git repository with its remote repository on the removable drive. I could then push changes from the "work location" computer to the remote repository on my removable drive, pull those change to the "home location" computer, make changes as needed, push those changes back to the remote repository on the removable drive, and then pull those changes back to the "work location" computer.
The notional structure would look something like this:
* SharedNetworkRemoteRepos (on a shared network drive at work):
├── RepoA (remote, bare git repository)
└── RepoB (remote, bare git repository)
* WorkLocationComputer
└── * repos (local clone from RemovableRemoteRepo)
├── RepoA (local clone from SharedNetworkRemoteRepos)
└── RepoB (local clone from SharedNetworkRemoteRepos)
* RemovableRemoteRepo
└── repos (remote, bare git repository)
* HomeLocationComputer
└── * repos (local clone from RemovableRemoteRepo)
├── RepoA (local clone from SharedNetworkRemoteRepos [unreachable])
└── RepoB (local clone from SharedNetworkRemoteRepos [unreachable])
It might be an odd idea, but is it possible? Will git allow this? Will the remote "repos" repository on the removable drive interfere in any way with all the git repositories in the repos folder (all of which belong to a completely different remote repository)? Are there other pitfalls to this method?
Thanks.