Use Network disks and git to manage resources

Source: Internet
Author: User

There are many network disks, such as dropbox, kubernetes, skydriver, 115 netdisk, yunnuo, and nut shop, which have powerful functions, most clients provide automatic version management and encrypted transmission. This provides convenient conditions for us to manage our resources. Generally, we have enough resources to directly use the network disk. But we have a situation where you suddenly have a code idea to implement at home, but you cannot do it at once, or you don't want to get the company to use it. What should we do, also synchronized to the network disk? The company's data will also be modified. At that time, the branch Function of vcm was used. You said that I could copy one copy. OK. Of course you can do this. If there are several G resources, would you also need to copy one copy? Moreover, the Network Disk may not be able to accommodate it. The best way is to use a proper version management tool for management. Using svn or vnc? You need to create a server ~~, Now, git is the main character. You don't need a server at all, or your network disk is your server. The home is a branch, and the company is a branch. Just do a good job of merger.
1. You do not need a server. You can also create a server;
2. branch management is extremely convenient;
3. It can be used together with svn;
4. Only generate files in the root directory without directly deleting them, which is convenient to clean up;
At that time, the pure version of git data is stored in the network disk. A good result is that if others do not clone your content, they will not be able to guide you in what it is stored. From this point of view, our privacy is also guaranteed. Who knows whether the network disk will be hacked or broke on that day, the storage of our data in this form can also be scanned in case of Network Disk security problems, which effectively avoids plaintext.
Because of the linux system I use, I can only use Yun Nuo as the environment. (The nut store supports linux but requires the extension of nautilus2. I cannot use kde ). The procedure is as follows:
1. Use "git init -- bare -- shared" in the Network Disk directory to initialize a pure repository;
2. add the repository in the "git remote add name directory" directory under the project directory. (If your local resources are not managed using git, you need git init initialization, use git commit-a to submit these resources to the local repository );
3. submit the "git push name" code to the repository;
4. OK. Now, the online storage automatically detects that the file changes are synchronized to the remote online storage.
In this way, you can synchronize the repository with the online storage at home to update the resources. Branch Operations git provides powerful support for your own research.
Attachment: I personally think dropbox is best to use. It is supported by multiple platforms, but it is a wall. The fast disk is powerful, but it does not support linux or mac; in China, only the nut shop and Yun Nuo are available for linux and mac versions.

Source blog

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.