The easiest way to create an uncomplicated private or public git server, that's up to you.
UltraGit is a fast and easy to deploy git server written in Node.js. It uses SQLite as database to store the users information and permissions.
npm install ultragit
It's as easy as this:
const rugs = require('ultragit')
const ugs = new rugs.UltraGitServer()
const DB_PATH = '/opt/GIT/DB'
const REPOS_PATH = '/opt/GIT/repos'
const PORT = 1221
ugs.init(DB_PATH, REPOS_PATH, PORT, () => {
console.log('UltraGit running at http://localhost:' PORT)
})
Finally, run it, and you're ready to go.
node index.js
Thanks to this amazing project by gabrielcsapo.