1

I have a local copy a of a web project on a local server. Everything is ok. Works with git and github.

However I have the (almost) same repository on another server. The problem is that repo is initialised with its own git init command and thus the two repos are separate.

Is there any way to sync these?

CharlesB
  • 86,532
  • 28
  • 194
  • 218
Sinan
  • 5,819
  • 11
  • 39
  • 66

1 Answers1

1

I have used this successfully

git remote add upstream git://another-server.com/repo.git
git fetch upstream
git merge upstream/master
Zombo
  • 1
  • 62
  • 391
  • 407