Created
June 16, 2015 17:41
-
-
Save simonszu/c15fe13adb19cd592d66 to your computer and use it in GitHub Desktop.
Create a new bare repo in Cgit's path
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 | |
| # This script creates a new bare git repo and adds it to cgit | |
| echo -n "Enter the name and press [ENTER]:" | |
| read name | |
| echo -n "Enter the description and press [ENTER]:" | |
| read description | |
| echo -n "Enter a mail address and press [ENTER]:" | |
| read mail | |
| cd /home/simonszu/repos | |
| git init --bare $name | |
| cd /home/simonszu/repos | |
| echo "" >> cgitrepos | |
| echo "repo.url=$name" >> cgitrepos | |
| echo "repo.path=/home/simonszu/repos/$name" >> cgitrepos | |
| echo "repo.desc=$description" >> cgitrepos | |
| echo "repo.owner=$mail" >> cgitrepos | |
| echo "Remote git path: simonszu@eridanus.uberspace.de:repos/$name" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment