Git repository synchronization through non-push machines

I have three computers that must have the same settings for all of their applications. Since all of them have processes running using these settings, I never want to click, instead, I would like each of them to track the other two and pull it out only when I logged in.

After we work in a couple of days, all the articles that I found seem to suggest that you want to push to the central repository before pulling it out of other machines, but this seems like a waste of space and (transferring) time. Are there any guides that can explain how to do this?

Edit 2: Pat Notz gave the necessary advice to fix .git / config:

[branch "master"]
  remote = machine2
  merge = refs/heads/master
[remote "machine1"]
  url = ssh://192.168.0.4/~/settings
  fetch = +refs/heads/*:refs/remotes/machine1/*
[remote "machine2"]
  url = ssh://machine2/~/settings
  fetch = +refs/heads/*:refs/remotes/machine2/*

Edit 3: Thanks so much for the answers. The result can be found in a separate message.

+3
source share
2 answers

, git pull - . pull fetch merge; (, ) , . , , , - . , . Git , , , , , Git .

, pull , . : merge. , , Git , . , , , , , - . , - . , . A B, B A .

git fetch , pull. , - :

git fetch A
git rebase A/master

"A/master" , . A/master, , , .

+3

. A, B, A,

git pull A

git pull , .

+3

Source: https://habr.com/ru/post/1722858/


All Articles