I would recommend:
- cloning
yourRemoteRepo
(that way, you can easily pull/push from that repo) -
adding
mainstreamRepo
as a remote and fetch its branch, then track the one which interest yougit clone git://yourRemoteRepo git remote add mainStreamRepo http://mainStreamRepo git fetch mainStreamRepo git checkout -b mainStreamMaster mainStreamRepo/master git checkout master
From there, you can
- merge
mainStreamMaster
to yourmaster
, - or rebase your
master
on top ofmainStreamMaster
(in order to integrate the full history ofmainStreamMaster
into yourmaster
branch) - then make some evolutions to
master
(or to a topic-specific branch) that you can push toyourRemoteRepo
.