In the era of cloud storage, all kinds of network disks have come.
You have nothing to writeCodeYou can use git to create a private quasi-Git server by using the automatic synchronization function of the online storage,
The principle is very simple. Just put git repo in the Network Disk.
However, at this time, we need to make the original repo not bare into bare to be perfect.
From git FAQ
And try it on your own.
My environment: Windows XP + msysgit
Steps:
* Assume that the original repo folder is F:/repo.
* Create a folder under the Network Disk directory, such as test
* Right-click the folder and select git bash.
* Git clone -- bare-L/f/Repo ./
After the preceding steps, test is a bare repository. You can use it later:
* Switch to the target folder.
* Git clone <Network Disk directory>/test
OK
20110606 Note: I suddenly found that when tortoisegit was clone, there was an option to clone it into a bare repo.