Update project from GitHub remote warehouse using Git command __git

Source: Internet
Author: User
Tags using git

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.