Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

Github-question

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


icdevgroup at hertell

Jun 7, 2009, 3:38 AM

Post #1 of 3 (1307 views)
Permalink
Github-question

Hi All,

I have been playing around with github, and i looks like a great tool. I
created a fork where i created a small patch that got slightly
modificated into the master repository. Now i wonder what should i do to
merge any new patches made to the master into my fork? Is it via the
Fork Queue that this should be done? For example the final patch that
was made into the master has a "Will likely not apply cleanly" status,
so apparently this is not the right place to suck in the patch from the
master...

I assume this is easy to do, but i just cant's seem to find the right
way doing it...

Regards,

René
-=-=-
... Creativity is great, but plagiarism is faster!

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


jon at endpoint

Jun 8, 2009, 10:20 AM

Post #2 of 3 (1206 views)
Permalink
Re: Github-question [In reply to]

On Sun, 7 Jun 2009, Rene wrote:

> I have been playing around with github, and i looks like a great tool. I
> created a fork where i created a small patch that got slightly
> modificated into the master repository. Now i wonder what should i do to
> merge any new patches made to the master into my fork? Is it via the
> Fork Queue that this should be done? For example the final patch that
> was made into the master has a "Will likely not apply cleanly" status,
> so apparently this is not the right place to suck in the patch from the
> master...
>
> I assume this is easy to do, but i just cant's seem to find the right
> way doing it...

The GitHub web interface is just that: primarily a viewing interface. But
for all serious work with the repository you do it with the git tools as
you would with any other repository.

The easiest thing for you to do is destroy the commit you made that went
into upstream differently:

git reset --hard HEAD^

Then pull down changes from mainstream. Assuming your git remote for the
central repository is called "icdevgroup":

git pull icdevgroup master

Then if that worked without error, you push to your github remote and
you're current.

Does that make sense? If you get stuck, please send the output of "git
remote" and "git branch -a" so we can refer to your actual names of
things.

Thanks,
Jon

--
Jon Jensen
End Point Corporation
http://www.endpoint.com/

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


interchange at hertell

Dec 2, 2009, 3:13 AM

Post #3 of 3 (823 views)
Permalink
Re: Github-question [In reply to]

Jon Jensen wrote:
> On Sun, 7 Jun 2009, Rene wrote:
>
>> I have been playing around with github, and i looks like a great tool. I
>> created a fork where i created a small patch that got slightly
>> modificated into the master repository. Now i wonder what should i do to
>> merge any new patches made to the master into my fork? Is it via the
>> Fork Queue that this should be done? For example the final patch that
>> was made into the master has a "Will likely not apply cleanly" status,
>> so apparently this is not the right place to suck in the patch from the
>> master...
>>
>> I assume this is easy to do, but i just cant's seem to find the right
>> way doing it...
>
> The GitHub web interface is just that: primarily a viewing interface. But
> for all serious work with the repository you do it with the git tools as
> you would with any other repository.
>
> The easiest thing for you to do is destroy the commit you made that went
> into upstream differently:
>
> git reset --hard HEAD^
>
> Then pull down changes from mainstream. Assuming your git remote for the
> central repository is called "icdevgroup":
>
> git pull icdevgroup master
>
> Then if that worked without error, you push to your github remote and
> you're current.
>
> Does that make sense? If you get stuck, please send the output of "git
> remote" and "git branch -a" so we can refer to your actual names of
> things.

Hi Jon!

I reply to this thread, so that if someone else has similar troubles,
he'll find it in the same thread..

It's now a couple of months since i sychronized my github-fork with the
icdevgroup-master on github. Sometime after this sync i created this patch
http://github.com/hertell/interchange/commit/b253f823667180e44c7381397366c0b20fb28f50
and it was committed into the main tree:
http://github.com/interchange/interchange/commit/3961cdca49595614dd51da0bf32d969a648d4a8f

Now i followed this guide
http://github.com/guides/keeping-a-git-fork-in-sync-with-the-forked-repo

I end up with the following conflict-error:
$ git pull icdevgroup master
From git://github.com/interchange/interchange
* branch master -> FETCH_HEAD
Auto-merged Makefile.PL
Auto-merged WHATSNEW-5.7
CONFLICT (content): Merge conflict in WHATSNEW-5.7
Removed dist/standard/dbconf/sqlite/2ndDayAir.dbm
Removed dist/standard/dbconf/sqlite/Ground.dbm
Removed dist/standard/dbconf/sqlite/NextDayAir.dbm
Removed dist/standard/dbconf/sqlite/area.lite
Removed dist/standard/dbconf/sqlite/cat.lite
Removed dist/standard/dbconf/sqlite/gift_certs.lite
Auto-merged lib/Vend/Dispatch.pm
Auto-merged lib/Vend/Order.pm
Auto-merged lib/Vend/Payment/BusinessOnlinePayment.pm
CONFLICT (content): Merge conflict in
lib/Vend/Payment/BusinessOnlinePayment.pm
Auto-merged lib/Vend/Payment/PaypalExpress.pm
CONFLICT (content): Merge conflict in lib/Vend/Payment/PaypalExpress.pm
Automatic merge failed; fix conflicts and then commit the result.

And continuing the steps in the guide results this..
$ git fetch icdevgroup
$ git merge icdevgroup/master
fatal: You are in the middle of a conflicted merge.

This is what git remote returns:
$ git remote
icdevgroup
origin

and git branch -a

$ git branch -a
* master
icdevgroup/DEB_5_5_1
icdevgroup/master
...
origin/DEB_5_5_1
origin/master

I'm sure this is again something easy fix, but the helps and tips around
the net did not help at all.. Most likely i succeeded to mess things up
even better ;-)

Regards,

René

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.