Skip to content

Instantly share code, notes, and snippets.

@sio4
Created December 17, 2014 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sio4/a579ba5068fbf650f362 to your computer and use it in GitHub Desktop.
Save sio4/a579ba5068fbf650f362 to your computer and use it in GitHub Desktop.
HTTP 서비스용 Git 저장소 만들기
#!/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