Githelper is a simple script to initialize a new git repo on your git server.
Download githelper script to your server:
$ wget https://raw.githubusercontent.com/Theophrast/githelper/master/script/githelperCustomize your script, open with nano, change parameters (see configuration), save it with Ctrl+O
$ nano githelperAfter customization make executable:
$ sudo chmod +x githelperMove to /usr/bin/ folder to make accessible for everyone
$ sudo mv githelper /usr/bin/githelperThats it! You can access this script anywhere.
Check for version:
$ githelper -vTo see help file:
$ githelper -h$ githelper -i
$ githelper --initIn the wizard screen you can set the name of the repository, and create a new one.
$ githelper -l
$ githelper --listTo list current configuration:
$ githelper -cEdit these lines in githelper script for customisation.
#IP address of your git server, use static ip
GIT_SERVER_IP_ADDRESS='192.168.0.128'
#your git repo base url, this will contain subfolders
GIT_REPO_BASE_DIRECTORY='/home/git/git-root'
#your git repsitories info will be written in this file
GIT_REPOS_INFO_FILE='/home/git/GIT_REPOSITORIES_INFO.txt'
#default subfolder, if you choose private there will be
# a folder with your name
GIT_REPO_DEFAULT_SUBFOLDER='shared'