Making git clone as bare
Submitted by taufiq @Krim.NET on Fri, 03/25/2011 - 12:27
Found this http://stackoverflow.com/questions/2199897/git-convert-normal-to-bare-repository as reference
Apparently the commands below makes regular "git init" as "git init --bare"
# go to repository
cd REPO
# rename .git folder
mv .git REPO.git
# get inside
cd REPO.git
# conversion command
git config --bool core.bare true
- taufiq @Krim.NET's blog
- Login to post comments
Copyright © 2008-2011