Created
December 19, 2011 18:50
-
-
Save Chavao/1498369 to your computer and use it in GitHub Desktop.
Configurar servidor Git
This file contains hidden or 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 | |
# Os usuários precisam estar no grupo chamado git! (Configurar em /etc/group) | |
# Modo de usar: | |
# ./git-server.sh nome-do-projeto | |
mkdir $1 | |
cd $1 | |
git init --shared=group | |
git config --bool core.bare true | |
cd .. | |
chgrp -R git $1 | |
chmod -R g+swX $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment