search

Home  >  Q&A  >  body text

github - How to synchronize git code from the cloud to the local computer!?

When I read the git tutorial, I felt like my head was spinning~ I couldn’t understand anything. In fact, I didn’t want to understand the theories. My needs were very simple~

I know how to create ssh key, I know how to modify files locally and submit them.

Then you also know how to clone the code from the cloud to the local~

But I don’t know how to synchronize the code in the cloud to the local !!

Attention!! Yessynchronization not clone

Explain my needs:

For example, I made changes on my local Mac computer and submitted them to github.

Then my Alibaba Cloud liunx in the cloud needs to synchronize my modifications~ What should I do now?

Let me emphasize again, this is not cloning, because I only modified a few lines of code in a file, and there is no need to clone hundreds of M of things every time

怪我咯怪我咯2768 days ago795

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座2017-05-02 09:37:38

    Use git pull origin branch name

    reply
    0
  • ringa_lee

    ringa_lee2017-05-02 09:37:38

    Clone the code both locally and in the cloud. After modifying it locally, submit it to github, and then git pull it from the cloud.
    You synchronize with github locally, and synchronize with github on the cloud. In this way, the cloud is synchronized with the local one.

    reply
    0
  • Cancelreply