How make none-bare git repo to bare

Source: Internet
Author: User

 

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.

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.