yGit is a Rails app for hosting and managing private git repos.
-
Backup the authorized_keys file on the server.
~/.ssh/authorized_keys
-
Copy the application.example.yml to application.yml and make configuration changes as necessary.
... production: app_title: "yGit" repo_path: "~/repos" # path to the repo folder on the same server repo_host: "user@git.example.com:repos" # the root path git will use to access repos authorized_keys_path: "/home/user_name/.ssh" # location of the ssh folder basic_auth_user: "user" basic_auth_password: "password1" admin_email: "me@example.com"
-
Deploy the application.
-
Using the application add one or more public ssh keys.
-
Create a new repo.
-
Clone the repo using git.