Skip to content

Instantly share code, notes, and snippets.

@Chavao
Created December 19, 2011 18:50
Show Gist options
  • Save Chavao/1498369 to your computer and use it in GitHub Desktop.
Save Chavao/1498369 to your computer and use it in GitHub Desktop.
Configurar servidor Git
#!/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