The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: Milko on July 03, 2012, 11:50:16 AM

Title: Help needed - Github / Gitgui
Post by: Milko on July 03, 2012, 11:50:16 AM
Hello

I ask for help on how to use github, are some evenings when I try to solve some problems, but I could not even using the various resources available online.
I use gitgui but I also gitbash.

I have a repository at github (account milkogit, pak128brit). The repository is a fork Jamespetts account.

I managed to publish the changes and get them to James, but I can not update my repository with the news of James.
What I would like to be able to do is update my branch "master" with the innovations introduced by James in his branch "master".

I would have another question, I have two branches: master and payload, how can I do to merge the master branch in the branch payload?

Giuseppe
Title: Re: Help needed - Github / Gitgui
Post by: Dwachs on July 03, 2012, 02:06:07 PM
To update master branch:
In the git gui you do:
-- checkout your master branch (if not already done)
-- fetch from remote -> jamespetts/simutrans-pak128.britain
-- local merge jamespetts/simutrans-pak128.britain/master

then the your current branch is updated to contain all the changes of James' master branch.

To merge payload into master:
-- checkout your master branch (if not already done)
-- local merge -> payload

Hope this helps
Title: Re: Help needed - Github / Gitgui
Post by: Milko on July 04, 2012, 12:17:25 PM
Hello Dwachs

Quote from: Dwachs on July 03, 2012, 02:06:07 PM
-- checkout your master branch (if not already done)

I think my problem is here.
When, using gitgui, I update my local repository, the procedure goes well with "success" but my repository is not updated. I have to update the remote github repository first? (I do not know how to do it ..)

Giuseppe
Title: Re: Help needed - Github / Gitgui
Post by: Dwachs on July 05, 2012, 06:13:13 AM
'git checkout' is just the command to switch to the correct branch. In the git-gui it should be like Branches -> Checkout -> Master. If you are already on the master branch, this can be seen directly in git-gui: status line below the menu.

To download the changes from James, you click: Remote -> fetch from -> jamespetts/pakset, Then Merge -> local Merge -> jamespetts/pakset.

Which of these steps fail or do not produce anything?
Title: Re: Help needed - Github / Gitgui
Post by: Milko on July 25, 2012, 12:23:47 PM
@Dwachs

Thank's, problem solved.  :)

The problem was that, in gitgui, I had not added the link to the repository of James.

Giuseppe