Author Topic: Maintaining GitHub repositories on two or more computers  (Read 5779 times)

0 Members and 1 Guest are viewing this topic.

Offline oscar

  • TM Collaborator
  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1524
  • Last Login:Today at 01:36:37 am
    • Hot Springs and Highways pages
Maintaining GitHub repositories on two or more computers
« on: November 10, 2017, 10:15:30 pm »
I'm getting ready to upgrade my desktop PC, from a slow and ancient one incompatible with GitHub to a modern PC with Windows 10. Right now, my only GitHub repositories are on my Windows 10 notebook PC.

Would I be able to maintain a separate set of repositories (both highway and user data) on my new PC to use at home, in addition to the notebook copies for use on the road? I expect I'll have to frequently synch both PCs with the GitHub master, to keep them in synch with each other. Any other issues that would be showstoppers, or that I'd need to work around?

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2732
  • Last Login:Yesterday at 10:14:53 pm
Re: Maintaining GitHub repositories on two or more computers
« Reply #1 on: November 10, 2017, 11:20:13 pm »
This is exactly what git is good at.  However, it depends on how you're working exactly how to make this work.  Do you have a fork of these on GitHub you use regularly?  I'm thinking what you want is to have a clone on each PC and before you make any changes on each, pull down the latest from the origin on GitHub, then commit and push to your fork's origin on GitHub when you make changes.