Last active
July 2, 2017 14:41
-
-
Save paul1522/3b3263bb6bb68ed6873bfb74776a74dd to your computer and use it in GitHub Desktop.
git Server Setup Snippets - Setup git User
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 | |
adduser git | |
mkdir -p /srv/git | |
chown git.git /srv/git | |
chmod 700 /srv/git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment