github - How to synchronize git code from the cloud to the local computer!?
怪我咯
怪我咯 2017-05-02 09:35:38
0
2
812

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

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
滿天的星座

Use git pull origin branch name

左手右手慢动作

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template