Created
February 22, 2009 09:25
-
-
Save kogakure/68414 to your computer and use it in GitHub Desktop.
Bash: Create an exportable bare git repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir $1.git | |
cd $1.git | |
git --bare init --shared | |
touch GITWEB_EXPORT_OK | |
touch git-daemon-export-ok | |
git --bare update-server-info | |
chmod a+x hooks/post-update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment