GitHub: How do I...?

Started by yakra, August 31, 2015, 01:15:49 PM

Previous topic - Next topic

yakra

How do I update my yakra/HighwayData master repository so it's up-to-date with the TravelMapping/HighwayData master repository upstream?
"Officer, I'm always careful to drive the speed limit no matter where I am and that's what I was doin'." Said "No, you weren't," she said, "Yes, I was." He said, "Madam, I just clocked you at 22 MPH," and she said "That's the speed limit," he said "No ma'am, that's the route numbah!"  - Gary Crocker


oscar

Quote from: yakra on August 31, 2015, 01:15:49 PM
How do I update my yakra/HighwayData master repository so it's up-to-date with the TravelMapping/HighwayData master repository upstream?

At least in the version I use, there's a "sync" button toward the upper right corner of the page you get after you select the HighwayData repository.

I used it this morning to update the copy of the repository on my hard drive, so I could send Jeff the latest copies of the Interstates .csv files for him to add the new I-41, without undoing Jim's addition yesterday of I-99 in New York. 

You should do another sync in a few days, after Jeff's changes are added to the master, before editing the Interstates .csv files for the new and merged Interstate routes in Texas.
my Hot Springs and Highways pages, with links to my roads sites:
http://www.alaskaroads.com/home.html

yakra

#2
QuoteAt least in the version I use, there's a "sync" button toward the upper right corner of the page you get after you select the HighwayData repository.
Version? I'm using the webpage to do everything. Are you using a GUI application?

QuoteI used it this morning to update the copy of the repository on my hard drive
Hard drive... I don't believe the website does all that -- must be a GUI app, yes?

Can I sync using the web interface?
"Officer, I'm always careful to drive the speed limit no matter where I am and that's what I was doin'." Said "No, you weren't," she said, "Yes, I was." He said, "Madam, I just clocked you at 22 MPH," and she said "That's the speed limit," he said "No ma'am, that's the route numbah!"  - Gary Crocker

oscar

Quote from: yakra on September 01, 2015, 12:20:35 AM
QuoteI used it this morning to update the copy of the repository on my hard drive
Hard drive... I don't believe the website does all that -- must be a GUI app, yes?

I'm using GitHub Desktop, which is a Microsloth Windoze application but might be available for other OSes. The Desktop has a "View on GitHub" option which takes me to https://github.com/TravelMapping/HighwayData/ That page has two options in the lower right corner, "Clone in Desktop" and "Download ZIP" which might be want you need. But I'm feeling chicken this late in the evening and haven't tried out either, since I can do my synching from the Desktop application.
my Hot Springs and Highways pages, with links to my roads sites:
http://www.alaskaroads.com/home.html

rickmastfan67

Web interface:
1. https://github.com/TravelMapping/HighwayData
2. Look for the little 'green' icon beside the 'Branch: master' pull down and click it.
3. Look for the "compare across forks" text link and click it.
4. Change the 'Base Fork' to yours.
5. Hit the 'Create pull request' button.

Then you should be able to update your copy of the 'Master' on your fork. ;)

Jim

Quote from: rickmastfan67 on September 01, 2015, 03:59:37 AM
Web interface:
1. https://github.com/TravelMapping/HighwayData
2. Look for the little 'green' icon beside the 'Branch: master' pull down and click it.
3. Look for the "compare across forks" text link and click it.
4. Change the 'Base Fork' to yours.
5. Hit the 'Create pull request' button.

Then you should be able to update your copy of the 'Master' on your fork. ;)

Yes, that is what I've been doing.  It ends up putting an extra commit into your subsequent pull request that accounts for the update to the master, but that seems harmless enough.

Since I also have a clone on my hard drive, I have a couple extra steps to pull down the updated fork from GitHub to my computer, and when I'm done, I have to push up the changes to my fork in GitHub before I create a pull request.

I know this is all a little cumbersome but I really still believe the benefits of real version control make things much easier to manage overall.
Photos I post are my own unless otherwise noted.
Signs: https://www.teresco.org/pics/signs/
Travel Mapping: https://travelmapping.net/user/?u=terescoj
Counties: http://www.mob-rule.com/user/terescoj
Twitter @JimTeresco (roads, travel, skiing, weather, sports)

yakra

Aah, so I'm essentially creating a pull request to pull from the TravelMapping/HighwayData into the Yakra/HighwayData master. BOOM. Done!
"Officer, I'm always careful to drive the speed limit no matter where I am and that's what I was doin'." Said "No, you weren't," she said, "Yes, I was." He said, "Madam, I just clocked you at 22 MPH," and she said "That's the speed limit," he said "No ma'am, that's the route numbah!"  - Gary Crocker

yakra

It's time for me to think about uploading the Texas State Highways, Loops, and Spurs.
With over 700 files between the three systems, using the web interface as I've been doing so far isn't a very good choice. I'd much rather automate the process using the command line interface. Uploading's never worked for me; I need to set up my username and password for the git server... somewhere, somehow...

Help!
"Officer, I'm always careful to drive the speed limit no matter where I am and that's what I was doin'." Said "No, you weren't," she said, "Yes, I was." He said, "Madam, I just clocked you at 22 MPH," and she said "That's the speed limit," he said "No ma'am, that's the route numbah!"  - Gary Crocker

rickmastfan67

You could always send all the files to Jim and have him upload them if you're having problems.

Jim

Quote from: rickmastfan67 on October 06, 2015, 01:27:12 AM
You could always send all the files to Jim and have him upload them if you're having problems.

Yes, send them CHM-style and I'll import them with the command line.
Photos I post are my own unless otherwise noted.
Signs: https://www.teresco.org/pics/signs/
Travel Mapping: https://travelmapping.net/user/?u=terescoj
Counties: http://www.mob-rule.com/user/terescoj
Twitter @JimTeresco (roads, travel, skiing, weather, sports)

froggie

Quote1. https://github.com/TravelMapping/HighwayData
2. Look for the little 'green' icon beside the 'Branch: master' pull down and click it.
3. Look for the "compare across forks" text link and click it.
4. Change the 'Base Fork' to yours.
5. Hit the 'Create pull request' button.

What if we don't have a #4?  Or, alternatively, how do we create a #4?

Wadsteckel

Quote from: froggie on November 14, 2015, 09:54:10 AM
What if we don't have a #4?  Or, alternatively, how do we create a #4?

Hi Froggie,

Was thinking the same thing.  I found that at step #3, in the top right corner, there is a Fork button.  Hover over it, and it gives the option to 'Fork your own copy of .... to your account'.  Hope this is right, since I did that. 

My question is, how do I upload my file to my account so that it then syncs with the main area?

-Regards,
Ed S

yakra

Quote from: Wadsteckel on November 14, 2015, 10:27:01 AM
My question is, how do I upload my file to my account so that it then syncs with the main area?
To sync your file with the main repository after it's uploaded in yours, click the green icon beside the 'Branch: master' pull down, from the page for your personal repo.

To actually upload the file, well... I've just been using the text editor built into the web interface. Click the pencil icon to the top-right of the file's text. From there, I usually just paste in what I've been working on from a text editor or the waypoint editor.
"Officer, I'm always careful to drive the speed limit no matter where I am and that's what I was doin'." Said "No, you weren't," she said, "Yes, I was." He said, "Madam, I just clocked you at 22 MPH," and she said "That's the speed limit," he said "No ma'am, that's the route numbah!"  - Gary Crocker



Opinions expressed here on belong solely to the poster and do not represent or reflect the opinions or beliefs of AARoads, its creators and/or associates.