Convert a normal Git repository to a bare repository.


Replace the contents of your_current_repo with the contents of your_current_repo/.git, then tell the repository that it is now a bare repository.
To do this, execute the following commands:
cd your_current_repo
mv .git ../your_current_repo.git    # renaming just for clarity
cd ..
rm -fr repo # delete the non-bare repository i.e. your_current_repo
cd your_current_repo.git
git config --bool core.bare true






Comments

Popular posts from this blog

Data Bound Controls in ASP.Net - Part 4 (FormView and DetailsView controls)

ASP.net: HttpHandlers

The Clickjacking attack and X-Frame-Options