The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: jamespetts on December 19, 2019, 01:03:11 AM

Title: Who has Github repositories for Simutrans-Extended?
Post by: jamespetts on December 19, 2019, 01:03:11 AM
I am in the process of trying to make sure that my subscriptions to people's Github repisotires is up to date so that I can pull code whenever people people push it. For the purposes of this thread, I am concerntrating on the core code rather than the pakset.
I so far have the following people who have pushed at least one update in the calendar year 2019:
Ought there be anyone else on this list?
Title: Re: Who has Github repositories for Simutrans-Extended?
Post by: Mariculous on December 19, 2019, 08:52:15 AM
Here, me!
But not much coding will happen soon.
Title: Re: Who has Github repositories for Simutrans-Extended?
Post by: jamespetts on December 19, 2019, 10:50:41 AM
What is your repository's address, may I ask?
Title: Re: Who has Github repositories for Simutrans-Extended?
Post by: Mariculous on December 19, 2019, 11:00:08 AM
I did some tiny code change that you had incorporated manually and a few little commits to the pak yet.
https://github.com/irgend42
Title: Re: Who has Github repositories for Simutrans-Extended?
Post by: jamespetts on December 19, 2019, 11:39:34 AM
Quote from: Freahk on December 19, 2019, 11:00:08 AM
I did some tiny code change that you had incorporated manually and a few little commits to the pak yet.
https://github.com/irgend42

Splendid, thank you.
Title: Re: Who has Github repositories for Simutrans-Extended?
Post by: Vladki on December 20, 2019, 11:09:09 AM
I have also one, although long idle (vladki77).

Btw, what is the right way to get my repo / fork / branch up to date? 

I used to make pull requests from james's to mine, but then a pull from mine to james's would include all the duplicate commits since forking...
Title: Re: Who has Github repositories for Simutrans-Extended?
Post by: jamespetts on December 20, 2019, 12:29:04 PM
Quote from: Vladki on December 20, 2019, 11:09:09 AM
I have also one, although long idle (vladki77).

Btw, what is the right way to get my repo / fork / branch up to date? 

I used to make pull requests from james's to mine, but then a pull from mine to james's would include all the duplicate commits since forking...

Best just to pull the master into your repository before pushing the result to Guthub.
Title: Re: Who has Github repositories for Simutrans-Extended?
Post by: Vladki on December 20, 2019, 01:07:58 PM
Quote from: jamespetts on December 20, 2019, 12:29:04 PM
Best just to pull the master into your repository before pushing the result to Guthub.

Maybe I'm too lame with git.
If I clone jamespetts/master at home computer, do some changes and pull again, it will tell me to stash away my changes.
Maybe more step-by step guide would be useful.

So far I did:
- forked jamespetts (long time ago)
- made some branches for the particular improvements I wanted to do (smokes, slopes)
- cloned my repo to home computer
- did development (git commit + git push)
- now my master and branches are many commits behind james
- how do I pull james/master if my working clone is vladki/something ?
Title: Re: Who has Github repositories for Simutrans-Extended?
Post by: Rollmaterial on December 20, 2019, 01:52:06 PM
To pull you open the Git shell and run the git pull command.
Title: Re: Who has Github repositories for Simutrans-Extended?
Post by: Vladki on December 20, 2019, 02:39:00 PM
Quote from: Rollmaterial on December 20, 2019, 01:52:06 PMIf I clone jamespetts/master at home computer, do some changes and pull again, it will tell me to stash away my changes.
What is git shell? I use linux - git on command line. But as I said before: "If I clone jamespetts/master at home computer, do some changes and pull again, it will tell me to stash away my changes. " So How do I preserve my changes before pulling from master? How can I pull from james' repo and push to mine?

Please bear with me, when I learned programming there was nothing like git. And in the mean time I was an admin, not programmer.
Title: Re: Who has Github repositories for Simutrans-Extended?
Post by: Rollmaterial on December 20, 2019, 09:24:10 PM
Then I guess you simply use git pull in the command line. The command should look like this:
git pull https://github.com/jamespetts/simutrans-extended master