Skip to content

Theophrast/githelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Githelper

Githelper is a simple script to initialize a new git repo on your git server.

Installation

Download githelper script to your server:

$ wget https://raw.githubusercontent.com/Theophrast/githelper/master/script/githelper

Customize your script, open with nano, change parameters (see configuration), save it with Ctrl+O

$ nano githelper

After customization make executable:

$ sudo chmod +x githelper

Move to /usr/bin/ folder to make accessible for everyone

$ sudo mv githelper /usr/bin/githelper

Thats it! You can access this script anywhere.

Check for version:

$ githelper -v

To see help file:

$ githelper -h

Initialize a new git repository:

$ githelper -i $ githelper --init

In the wizard screen you can set the name of the repository, and create a new one.

List avaiable git repositories in git root folder:

$ githelper -l $ githelper --list

Configuration:

To list current configuration:

$ githelper -c

Edit 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'

About

simple script to initialize a new git repo on your git server.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages