Bob feels it's been a while since he received updates from the bare repos so he pulls to get the latest changes, with the results being as follows:
Well, finally let's not forget the source repository, mother of all these repositories, for the update. Before doing a
git pull
from there we should point to the origin as the bare repository, and then perform a pull operation. The commands are as follows:git remote add origin /path/to/bare_collab git pull –u origin master
This gives us an output as shown in the following screenshot:
As we have learned in Time for action – adding a remote origin in Chapter 4, Split the Load – Distributed Working with GIT, adding a remote would be a one time operation.
We can manually open the file or do a git log
to see the changes taking effect across repositories.