Created
December 17, 2014 02:06
-
-
Save sio4/a579ba5068fbf650f362 to your computer and use it in GitHub Desktop.
HTTP 서비스용 Git 저장소 만들기
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 | |
umask 002 | |
repo=$1 | |
repo_base=/var/git | |
[ "$repo" = "" ] && { echo "usage: $0 new_repo_name"; exit; } | |
git --bare init $repo_base/$repo.git && \ | |
cd $repo_base/$repo.git && \ | |
git config --local --add http.receivepack true && \ | |
git config --local --list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment