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
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.