For example, I have cloned the origin repository on two computers. Then, I go ahead and make some changes and commit to the local repository of computer A. How do I now pull these changes to computer B? Both computer A and B are connected to a network.
What I am looking for will be the equivalent of someone manually creating a patch and sending it to me, which I can apply to my working copy/local repo.
If the machine you want to pull from is accessible via
ssh, you can add the repository on it as a remote via ssh, and then pull from it like you would any remote:(You can skip the step of adding a remote and just specify the full URL in the
git pullcommand instead of a remote name, but if you’re going to be pulling from the repository on a regular basis, adding it as a remote will save you lots of typing.)