3 ms·
Ask HN: Is there a good tutorial on how to create a GitHub clone?
Curious about that
- malteg 4y agohttps://gitea.com/ https://gitea.com/
- dev_0 4y agoToo much feature....I am looking for simple git repo viewer but not written in perl
- helsinkiandrew 4y agoIf you just want to clone and have git command line you can just type "git clone <repourl>" Where repourl is what you if you click on the green Code button on a repository page. The github doc explains how to do it using other tools: https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository https://docs.github.com/en/repositories/creating-and-managin...
- withinboredom 4y agoBefore GitHub, I built one in-house. It wasn't as fully featured and beautiful, but it allowed us to manage our repos. It's really not that hard with a bit of bash-fu + curl in the hooks folder, a PHP site, and some css. These days, I think it would be nearly too easy with all the front-end libraries out there.
- blmayer 4y agoYou have to setup a git server and a front-end for the repositories. The first part is the easy one: you basically need one server and git installed. - https://saucecode.bar/posts/09-hosting-your-git-server.html https://saucecode.bar/posts/09-hosting-your-git-server.html - https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protoco... For the front-end part, there are some options: - cgit [1]: uses CGI to dynamically serve your repos, many customize it - git2html [2]: generates static pages Or you can build your own, I saw two approaches for this: 1. Use the git library [3] or bindings for it: [4] (golang) 2. Call the git CLI from you web server, I had some examples, but forgot them. --- [1] https://git.zx2c4.com/cgit/about/ https://git.zx2c4.com/cgit/about/ [2] https://github.com/Hypercubed/git2html https://github.com/Hypercubed/git2html [3] https://libgit2.org/ https://libgit2.org/ [4] https://github.com/go-git/go-git https://github.com/go-git/go-git
- dev_0 4y agoWhat FE framework should I use if I know nothing about FE development?