This is the ninth day of my participation in the First Challenge 2022. For details: First Challenge 2022.

The vast sea of millions, thank you for this second you see here. I hope my article is helpful to you!

May you keep your love and go to the mountains and seas in the coming days!

Note: 😎 today we will learn new knowledge bai! Believe us through the previous learning, you have learned the basic workflow, but you may also ask, the last step of the workflow push to remote, you have not talked about it, this is not today after the start, will talk about it!! Don’t worry!

😘 Remote warehouse

From the previous study so far, we have basically mastered how to operate the files in the local warehouse, and there is no need to worry about the loss of the backup files. This is only a backup of your computer, but if your computer system crashes and needs to be reinstalled, how to do? Your files are not the same or lost. Or say, same project group, want to undertake many people cooperate development, how should do.

Trust me, Git can help you solve these problems!

📓 Remote warehouse

Git has two repositories, a local repository and a remote repository. Local warehouse, through the previous study, we know, also know how to operate in the local warehouse, but remote warehouse is what ghost? 😑 don’t worry, let me tell you the guest officer slowly:

  • Git is a distributed version control system. The same Git repository can be distributed on different machines. In the beginning, only one machine must have an original library. Thereafter, other machines can “clone” the original library, and each machine’s library is the same, there is no primary or secondary.
  • At this point you’d think you’d need at least two machines to play remote libraries, right? But I only have a computer, you are not embarrassed me fat tiger?

  • In fact, it is also possible to clone multiple version libraries on a single computer, as long as they are not in the same directory. In real life, however, is no one so silly on a computer with a few remote library play (if you really lovely 🥰, so that when I didn’t say), on a computer it doesn’t make any sense to make a few remote library, and the hard drive or computer crashed all libraries will lead to hang up, so I don’t tell you how to clone multiple warehouse on a computer. No need, right?! 😬
  • And actual situation, is to find a computer ACTS as the role of the server, 24 hours a day, everyone else from the “server” cloning a warehouse to your own computer, and their respective submit warehouse, pushed to the server and warehouse pull others submitted from the server, and complete their task submission, etc.
  • It is completely possible to build a server running Git by myself. However, at this stage, I will buy a server to learn Git and set it up for my own service. Would you please tell me whether it is appropriate or realistic? (Not excluding you, of course!) 😎 heh heh, come on, there must be another way.
  • Fortunately, there is one in this worldGitHubAmazing website, I believe Internet people, will not know this url!! As the name suggests, the site offersGit repository hosting serviceSo, just register oneGitHubAccount number, you can get it for freeGit remote repository. Of course I will not use this, although I often use this to make graph bed use hey hey!

However, GitHub is a foreign website after all, the Internet speed may not be particularly smooth, I believe that most people are difficult to open, including me unless you open a proxy. And in China, we even many companies use another website: code cloud, website: gitee.com. Of course, some people will build their own private server, this is all I want to say the key! Next, I will focus on how to use the code cloud, registration, connection to the local warehouse and other issues.

🌸 summary

I believe that you see here, today’s git tutorial should be simple for you! We know the basic knowledge of remote warehouse today, then we need to know how to build their own remote warehouse to play!

Let’s refuel together, too! I am not just, if there is any missing, wrong place, also welcome you to criticize in the comments of talent leaders! Of course, if this article is sure to help you a little bit, please kindly and lovely talent leaders give a thumblike 👍, save it, and welcome to follow ❤️❤️❤️ [favorite food of canned fish] 👍, thank you very much! If you like canned fish too! 💕 💕 💕

Here, the world is closed for today, good night! Although this article is over, I am still here, never finished. I will try to keep writing articles. The coming days are long, why fear the car yao ma slow!

Thank you all for seeing this! May you live up to your youth and have no regrets!