[Xcb] Win32 port -- git help

Peter Harris pharris at opentext.com
Thu Mar 25 12:22:58 PDT 2010


On 2010-03-25 14:42, Jeetu Golani wrote:
>> Assuming your github remote is called "origin", and assuming that the
>> new version is locally in "master", the git steps to achieve this would
>> be something like:
>>
>> git branch origin/master old
>> git push origin old +master
> 
> Here I have one repo which is the working tree of xcb-win32 at github and 
> there's another repo which is the clone of xcb's git. The changes I've made 
> are in this clone. 
> 
> How would I push this foreign tree onto my git replacing my existing tree that 
> I can then have in old?

Something like
~/old$ git push origin master:old  # Push my master as new branch "old"
~/old$ cd ~/new
~/new$ git remote add mine ssh://github/ssh/path/wherever
~/new$ git push mine +master  # overwrite master on github

Peter Harris
-- 
               Open Text Connectivity Solutions Group
Peter Harris                    http://connectivity.opentext.com/
Research and Development        Phone: +1 905 762 6001
pharris at opentext.com            Toll Free: 1 877 359 4866


More information about the Xcb mailing list