Skip to content

nikhiljohn10/gitry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitry

A bash program to deploy git server for Ubuntu based operating systems of 64bit arch.

Installation

Simply run the following commands

$ sudo apt-get install -y wget
$ wget https://github.com/nikhiljohn10/gitry/archive/master.zip -O temp.zip
$ unzip temp.zip && rm temp.zip
$ cd gitry-master && sudo ./install.sh

Usage

To access gitry, ssh in to localhost using following command

$ ssh git@localhost # the install.sh adds pubic key of your system to server, hence no password needed

To use gitry after logging in to server

$ gitry list # list all the git repos added to server
$ gitry add <repository> # add a new repo in to server (do not use .git in repo name)
$ gitry delete <repository> # delete a repo from server (do not use .git in repo name)

To access server from client

$ git clone git@localhost:<repository>.git

# or 

$ git init && git remote add origin git@localhost:<repository>.git

Possibles errors

This is hardcorded for Ubuntu 16.04 LTS 64bit desktop version. The dependancies and commands may vary on your distribution. Please check all the commands in the script before running. The script is not tested much. So, report issue in repo to solve them.

Future

Planning to do and local git framework using either Node / Django on top of this script to give user a web based GUI and accomedate multiple user when it is deloyed on a server. Contact me if interested in working on it.

Cheers!