How to manage a project from multiple computers? git & github
Sine now I have been using PHP Storm to manage a local project with .git. Sources and git are stored on one computer.
I would like to manage the project from multiple computers. How can I achieve this, eventually using git hub?
请先登录再写评论。
Not sure if I got you right but it sounds like you're looking for a Github tutorial? Here's one: https://product.hubspot.com/blog/git-and-github-tutorial-for-beginners
I have successfully created a github account and shared the project on github.
So for now I have:
** Computer A - Holds original sources and local .git repo
** Github - Holds shared repo and sources
Let's say I'd like to use a secondary computer to have local copies of sources and git stuff, so it may sync to github, what should I do?
Can PHPstorm do this? For instance, say I install PHPstorm from scratch on another computer, how do I synchronize all data from github? There should be an initial sync/download from github...
We have an article precisely on this topic: https://www.jetbrains.com/help/phpstorm/manage-projects-hosted-on-github.html
Thanks for helping
Hello Eugene, seems working, however I don't get some points.
Firtsly, I believe that GitHub will work as a centralised location for the project. Developers using a local copy on a computer will work as usual, then once required, synch changes to git hub. This means both local git repo and online github repo are in sync. Could you confirm this?
Now if this is true I just wonder why I have made some changes to code and updated local git repo, however github code was not updated. What command should I run within phpstorm to updated github? Shouldn't this be done automatically when local repo is updated? What is the correct workflow when using both local repo and github?