I am working on two machines (one is "local" and another one is "remote"). I did the following set up:
- On the "remote" machine:
git init --bare repo1
- On the "local" machine:
git clone ssh://rep1
- On the "local" machine:
git remote add rep1 ssh://remote_machine/rep1
- On the "local" machine:
git push remote_machine master
So, in plain text, I create a "relay" repository on my "remote" machine, then, on the "local" machine I clone the repository (from somewhere) and after that I push this repository from "local" machine to "remote" machine.
After that I have updated the "local" repository by executing
git fetch ssh://myname@something1 something2 && git checkout FETCH_HEAD
And now I do not know how do I propagate the changes of the local repository to the remote one. Does any one know how to do it?
ADDED
Since it was confusing, I clarify a bit. There are 3 machines involved but only two of them are important (I refer to them as "local" and "remote"). I pull from this third machine (that does not have a name) when I am being on the "local" machine. In other words, the content of the "local" machine is taken from the third machine. What I want to achieve is to propagate what I have on the "local" machine to the "remote" machine (and again, the "remote" machine is not the same as the "third" machine).
ADDED 2
The problem is that git push
does not work for whatever reason. When I am on the "local" machine and execute git log
I see some commits from today. Then I execute the same push that I used to create the original content of the remote repository: git push remote_machine master
. This command tells me:
Killed by signal 1.
Everything up-to-date
I go to the remote machine and execute git log
and I see only commits that were done several weeks ago (and I do not see the commit from today, that I do see on the local machine).