So, I have a recent repo clone, I need to work at a "very close" network level (often on a local drive). There is also an “official” server that my workflow really wants to be a source, but it is often very slow (either because it is overloaded, either on a remote network, or both).
(this local repo is a clone of the official server that tends to be outdated for a week or two, but the repo is very large and has about ten years of history imported from old VCS, so the local clone plus fetching from the remote is much faster)
If I git clone -o local /path/to/repo and then git remote add -f origin URI-for-offical-repo , I will return to the same (*) git clone URI-for-offical-repo , given would i?
I am especially afraid of some subtle differences that could make a push from my repo to others. Also, if I start using this clone acceleration method, a “local” repo could be done using this method, possibly for several generations.
(*) the same plus the additional remote name "local" and everything that was not transferred from the local to the official server.
source share