Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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