GreenAsJade
GreenAsJade

Reputation: 14685

How do I create a bare repo clone of existing git working repo

I have been sole developer, working on a project with a local repository under git.

Now I need to create a bare repo for collaboration on a local network.

How do I do that?

Upvotes: 1

Views: 583

Answers (1)

GreenAsJade
GreenAsJade

Reputation: 14685

git clone -l --bare old_repo_dir new_repo.git

Note: if the plan is to collaborate over the web, it might be better to simply create a web-hosted repo and push the local one to that.

Upvotes: 3

Related Questions