Or little computing tricks and hacks
Everytime I do this I have to go to my notes or the Web… It’s time to put it in one place.
I want to create a new repository which is the common or reference point of our data. It can be seen as a back up or just the sanity check. In other words, I want to change where the pushing and pulling is directed. So the remote master origin.
This time the reference point is a zip drive, which should be connected always to the same computer otherwise the URL to reach the gits cannot be fixed. git push and git pull will respectively update the bare repos with local changes and get the latest changes, provided the correct URL is in the configuration file.
There are two ways of the doing the same thing. Choose the one you understand well:
To update the config file I commonly use the following method:
Another method is by using the git remote command. It has an issue though, that it will also modify the master branch and then when pulling, one must specify the branch at each go.
I will investigate later and post the workaround to this issue.