If other developers have modified the code for the GitHub project, and I'm going to continue to develop on their hunger basis, how do I sync the GitHub code, and notice that it's not a time to git init again. Create a new warehouse on this machine. In fact at this time the code warehouse and remote server has maintained a connection, we just have to pull the code down on it.
This will continue to be demonstrated on the basis of my previous blog, "Using Git to implement code upload and sync."
(1) I modify the test file directly on the GitHub and continue typing "sync from GitHub server to local test" in the file. "That's a sentence. Then add the comment save.
。
(2) Come to the local, terminal into the local project warehouse directory, note, must be in your project under the command to execute: Git pull.
.
(3) Then go to the local project to see if it has been synchronized with GitHub. Discovery data has been successfully implemented.
。
Learned to use Git for the synchronization of the project, it can be convenient for collaborative development.
My personal blog homepage is http://www.chenyufengweb.com. Welcome to visit, is still in continuous improvement, I hope you give suggestions.
GitHub home: https://github.com/chenyufeng1991. You are welcome to visit.