12 ms·
Gitea – a painless self-hosted Git service
- account42 4y agoIronically, the main Gitea repo seems to be hosted on GitHub.
- nik736 4y agoI am using Gitea + Drone for several years now and couldn't be happier. Stable, fast and it justs works without consuming a shitload of RAM.
- lapser 4y agoWoodpecker CI is a fully open source fork of Drone CI. Drone changed their license so they forked it.
- rapnie 4y agoYes, they integrated it with Codeberg.org also running Gitea.
- IshKebab 4y agoHow do those Docker-based CI systems support Windows and Mac builders? Aren't you constrained to just Linux? Seems like quite a crippling constraint in a huge number of situations.
- dividedbyzero 4y agoWhat did they change it to?
- generichuman 4y agoIt seems to be licensed under Apache 2.0 (for community edition) + some custom commercial license (for enterprise edition). See here: https://github.com/harness/drone/blob/master/LICENSE https://github.com/harness/drone/blob/master/LICENSE
- 3np 4y agoFrom an effort-cost-to-performance perspective, Gitea (or equivalent) scores very high if you're considering software to self-host. Practically infinite private repos, privacy, automate/customize all you want.
- bnajdecki 4y agoUsing it for more than a year - It’s an awesome project. Can easily work on the cheapest DO VPS.
- neatze 4y agoI was compelled to learn GO because Gitea, running it docker and on commit Gitea triggers tasks on multiple Mini PCs (wrote my own simple CI).
- malteg 4y agoTry drone?
- Loic 4y agoOr Woodpecker[0], a fork of Drone keeping the Apache 2 license. [0]: https://woodpecker-ci.org/ https://woodpecker-ci.org/
- capableweb 4y agoWoodpecker is what Codeberg (Gitea deployment) is using and it works wonderfully! Here is an example pipeline I use to build and deploy Ditzes (my offline/desktop HN client): https://codeberg.org/ditzes/ditzes/src/commit/410486175a2dea828e6f4e3203cb98ebd7a94582/.woodpecker.yml https://codeberg.org/ditzes/ditzes/src/commit/410486175a2dea...
- Aeolun 4y agoOoh, you use Tauri! Do you mind me asking how you like working with it? I’m considering switching my NW.js app over to Tauri, but I’m a bit hesitant due to the work involved.
- capableweb 4y agoI like it a lot better than NW/Electron that I've used plenty before. Smaller packages and faster startup but way longer build times, which is a bit of a hassle but it's Rust, so not sure you can expect otherwise. There are still some bugs around that are a bit of a hassle to deal with, but only one that is a showstopper for me personally (the back button on the mouse doesn't navigate back), otherwise it works out well for me.
- jasonjayr 4y agoIt can also serve as an OIDC IdP[1], which makes it handy to be the linchpin for a bunch of developer services with SSO. 1: https://docs.gitea.io/en-us/oauth2-provider/ https://docs.gitea.io/en-us/oauth2-provider/
- Loic 4y agoYou get access to the organizations in which the user is, which is really nice to provide access to other company services based on this information. A small example, we create users for our customers in gitea and they are only part of the "customer" organization. This automatically get them access to the "customer" worklog as they access the customer area. So gitea is for us the central identity management.
- dancemethis 4y agoIt's almost perfect. A small fork removing Discord things makes it effectively so.
- bdeshi 4y agowhat discord things?
- sli 4y agoIt supports Discord webhooks[0]. [0]: https://github.com/go-gitea/gitea/blob/main/services/webhook/discord.go https://github.com/go-gitea/gitea/blob/main/services/webhook...
- smcl 4y agoIs it possible to not use the Discord things?
- roastedpeacock 4y agoNo fan of Discord but from what I remember the functionality is opt-in and if the webhook is not configured it does nothing. Among all the possible things to get worked-up about this seems like nothing (unless you are purist that considers including optional functionality to interface with a proprietary-service to be harmful).
- waplot 4y agoThey're just webhooks, not sure what the issue is (?)
- rascul 4y agoI find Gitea to be great. Also there is a curated list of awesome projects related to Gitea: https://gitea.com/gitea/awesome-gitea https://gitea.com/gitea/awesome-gitea
- trentthethief 4y agoCgit is even more light weight and secure.
- LinuxBender 4y agoAnd it appears Arch has a nice document regarding the installation [1] [1] - https://wiki.archlinux.org/title/cgit https://wiki.archlinux.org/title/cgit
- russianxol 4y agoI use awesome public container of cgit --> https://hub.docker.com/r/rusian/gitolite-cgit https://hub.docker.com/r/rusian/gitolite-cgit
- jamal-kumar 4y agoI'm a huge fan! Written by Jason Donenfeld and company so you know it's solid code, too. https://git.zx2c4.com/cgit/about/ https://git.zx2c4.com/cgit/about/
- johnsea 4y agoFWIW I prefer gogs (from the original developer).
- toastercat 4y agoWhy do you prefer gogs? Never tried either, so curious.
- johnsea 4y agoIn the beginning after the fork, gitea added features which I didn't need. Nothing against gitea just thought I'd also mention gogs, which hummed along here fine and if possible I prefer the code from the original author. (Edit, mmh, not always true, I use neovim...)
- jamal-kumar 4y agoAt a company I worked at, for security reasons we used gogs. Boss didn't want some random NPM-downloaded javascript anywhere near our source code, which was something which handled enormous piles of money. Gogs doesn't bother with any nodejs at all. Personally I like even MORE basic than gogs or gitea and use this at my own company: https://git.zx2c4.com/cgit/about/ https://git.zx2c4.com/cgit/about/ It's like a single binary packaged up, and a few lines on openbsd httpd to get it running. Pretty sweet!
- InfamousRece 4y agoLast time I tried Gitea, it was surprisingly difficult to migrate existing git repos. I hope they made it easier.
- chrismorgan 4y agoI don’t feel that “Git service” is quite doing it justice. If it were just a Git service, I don’t think it’d have the social features: repository namespacing, user accounts (at least to the extent it has them), issue tracking, pull requests, release management, wiki, watching/starring/forking… Now as it happens, I actively don’t want any of that stuff for something I’m hosting for myself for my own projects only. I pretty much just want the parts you’d get in gitweb or cgit, but done better (since neither of those is very good; I run gitweb because I wasn’t impressed with either, but gitweb was easier to patch into a more acceptable shape). Is Gitea capable of being pared down to just this? Is there anything else that fills this niche?
- Tmpod 4y agoYou could try setup just a git.sr.ht instance, I suppose. Dunno if it is what you're looking for, but it might be worth checking out.
- chrismorgan 4y agoAs regards features, git.sr.ht is certainly lighter than Gitea, but still suffers from various of the same problems because it’s designed to run the show with social operation, rather than just doing read-only publication of repositories that it finds at such-and-such a location. It doesn’t have as much extraneous and undesirable functionality (e.g. no issue tracking), but when setting it up requires PostgreSQL and Redis (which latter I think you may be able to skip, but it’s hard-required in the systemd units I see) and more… yeah, this is not what I’m looking for. Operationally, Gitea is considerably lighter than git.sr.ht, as you can get it going with only Git and SQLite installed.
- pvinis 4y agoim trying to remember one. I used it and I think you will like it. but it's been a while and i am forgetful! it was something short, the url too. it was sh or st something. can anyone get which one I mean? edit: YES! it's sr.ht. thanks, commenter below this :)
- lapser 4y ago
- secwang 4y agoFossil is better for small project
- LinuxBender 4y agoAdding link [1] for reference. [1] - https://fossil-scm.org/home/doc/trunk/www/index.wiki https://fossil-scm.org/home/doc/trunk/www/index.wiki
- runeks 4y agoWhy?
- thunderbong 4y agoSingle binary. Cross platform. Runs with it's own server with web interface. Has issue tracking, wiki, chat. Happy user of fossil since over 10 years now, both in individual projects and teams' projects. For me, unlike git, fossil just gets out of the way and let's me focus on delivering. Doesn't have a whole bunch of arcane commands. https://andreiclinciu.net/blog/why-im-using-fossil-scm-instead-of-other-source-control-systems https://andreiclinciu.net/blog/why-im-using-fossil-scm-inste...
- StevePerkins 4y agoThat's not a Git web interface, that's a completely different source control system altogether! And from a quick bit of web searching, it looks like most IDE's out there either lack a plugin for fossil, or else have a plugin that's outdated and doesn't keep up with the current version of the IDE. I realize that all of these "I Like X!" silly HN threads invite a lot of "I Like Y!" silly replies, but there sure are a lot of caveats on "better" here. You could make a much stronger case for recommending Subversion or CVS, lol.
- secwang 4y agoyes, thank you.But light and self Hosted version control,I have to recommand fossil.Git is not gods,we can blame it and recommand other more better software for special case.
- holografix 4y agoI found the Auth bit a bit difficult to parse. I wanted to used Firebase for it but didn’t quite know how. How are people handling user registration and SSO?
- rapnie 4y agoMost exciting that they are working on federation support that'll tie individual self-hosted servers together. https://nlnet.nl/project/Gitea/ https://nlnet.nl/project/Gitea/
- rapnie 4y agoOther projects mentioned are: https://forgeflux.org https://forgeflux.org https://forgefriends.org https://forgefriends.org https://forgefed.peers.community https://forgefed.peers.community
- abdusco 4y agoOne great feature of Gitea is that you can create private repos without using the UI/CLI by adding a git remote. git remote add origin https://my.gitea/user/new_repo git push # user/new_repo is created as a private repo Super cool. Does Github have such a feature?
- INTPenis 4y agoNot sure about Github but Gitlab does. It just creates a new repo under your account when you push to a non-existing one. Seems like a very basic feature to me. And the default setting happens to be private.
- filmgirlcw 4y agoNot sure if doing it that way will create a private repo or not (at the airport and I can’t check), but you can use the GitHub CLI to do it. I’m a huge fan of the CLI, but obviously being able to do it without that is nice. https://docs.github.com/en/get-started/quickstart/create-a-repo https://docs.github.com/en/get-started/quickstart/create-a-r...
- madacol 4y agoJust tested, github fails
- unqueued 4y agoFor GitHub, using the hub[1] client, you can simply do: hub create -p That will create a new private repo, matching the name of your repository. What I will often do if I want to instantly mirror something to github: hub create -p --remote-name=github Which will create a new remote with that name. Otherwise origin will be used, which can conflict if you already have an origin remote. It is also less typing. [1]: https://github.com/github/hub https://github.com/github/hub
- phpisthebest 4y agoI dislike organizations that take open source things like git, and then extend them to add features making them propriety work flow lock in making it hard to move to a new platform Another company was famous for this, they used to call it Embrace, Extend, Extinguish
- synergy20 4y agobeen using it for 4+ years, no complains and it keeps getting better. each upgrade is super simple: just stop the service, replace that one single binary, and start the service.
- jlturner 4y agoI’ve been running local Gitea for about 4 years. It works great, no complaints here. I mirror my GitHub repos (and sensitive repos I don’t want to trust on GitHub) and back up the hard drives with BackBlaze.
- ironmagma 4y agoI’ll go against the grain and say, Gitea is good but could use a lot of improvement. We use it at my company (startup) and find there are issues with migrations (up but no down), nonstandard web framework (go-macaron), and far too much logic implemented in go templates. There are also some strange issues with how errors are reported. Go is a fine language, but Gitea isn’t a great Go codebase. Of course, we/I understand open source software isn’t perfect and such. That isn’t my point, I’m just saying that Gitea could use a complete rewrite, ideally using NextJS (if SSR is that important) or moving most if not all view logic into the client side, ditching go-macaron and xorm for something more widely used, relying less heavily on go templates, and doing error handling a bit better. That said, Gitea does have a good excuse which is that it inherited many of these things from Gogs, from which it was forked.
- muhehe 4y agoI'll go and say a really don't like arrogant comments like yours. Shitting on someone's work you're using for free by recommending complete rewrite in technologies you currently like is absurd. Less used framework - so what. Logic in templates - yeah not great but still, so what? Etc... Doesn't really bother anyone using it.
- ironmagma 4y agoThere’s nothing arrogant in my comment. Like I said, Gitea is good. Like all other software, iterations improve quality, and I’m just saying it’s time for the next iteration. I probably would have written Gitea the exact same way if I were in the developers’ shoes, but that doesn’t mean a rewrite wouldn’t still be in order. As for the so what, I think the answer is just that things can be better, so if someone is out there reading this thread who has some time, they can see this and know what kind of improvements can be made.
- muhehe 4y agoSuggesting improvements is ok. Recommending complete rewrite in different stack and technologies is not constructive critique imo.
- zxcvbn4038 4y agoI’ve been using gitea for a number of years - before GitHub started letting people have private repos for free it was about the only option for a self hosted private repo with a GUI. It’s written in Go which makes it very convenient to run from a usb stick. It also has a feature to mirror other repos and I use that to keep local copies of projects I follow - and has saved me a couple times when the project authors decided to delete their repos or YouTube decided to not host them. Today I use gitea to host my private development server as a Tor hidden service which makes it easily accessible from almost anywhere - though many major hotels chains will ban your MAC address locally if they see you connecting to Tor servers, but never had issues while at an AirBNB which is where I spend most of my time these days.
- mwint 4y agoSide track, but what circumstances/choices lead to spending most of your time at AirBnB’s?
- zxcvbn4038 4y agoI didn’t leave my apartment for two years because of Covid and decided a change of scenery would be nice, so my family and I have been bouncing around rural AirBNBs for about six months. Though we’ll have to go back in another month - my son really wants to go back to in-person schooling, that is starting soon. But back to the woods as soon as he gets tired of high school life!
- tbrownaw 4y ago> as a Tor hidden service which makes it easily accessible from almost anywhere I have a wireguard with the server running on a small VPS, which is useful for both ignoring filtering on public wifi and getting into my home network from wherever.
- jacooper 4y agoI think headscale/ other mesh vpns would be better choices so you can get direct connection to your home instead of passing everything through the VPS.
- siddontang 4y agoGitea is very easy to use, but I find the Activity feature is a little slow. I experienced the "Try Gitea" service and migrated our TiDB repo https://github.com/pingcap/tidb https://github.com/pingcap/tidb to it. When I clicked the Activity tab and selected "1 year" period, I found the page loading was so slow, nearly 90s. And I also found that this Activity doesn't have a Cache, I re-selected "1 year" again, and the page loading was nearly the same time. I guess Gitea uses git command to traverse all the logs for the period every time. Maybe it can use a database to speed up, or like Github only provide at max "1 month" period.
- capableweb 4y agoCould just be because the "Try Gitea" service is just a test deployment, staging environment if you will. I don't think it's optimized in any way at all. Trying to same on Codeberg, which is a production environment of Gitea, the loading time of the "Activity" page for Codeberg/gitea seems to take ~5 seconds for me. It still seems to lack any sort of caching, but at least it's relatively fast. See https://codeberg.org/Codeberg/gitea/activity/yearly https://codeberg.org/Codeberg/gitea/activity/yearly (people might want to be careful hitting that URL over-and-over, in case we ddos the Codeberg folks :/ )
- bioemerl 4y agoIt would be generally be a good idea to migrate away from this to something else, I use gitbucket, and it works very well for me. Yes it is an open source project, but the entire team that works on it is based out in China, and that's really not something you want to play games with.
- Zababa 4y agoHas there been any issues because of that, or is this just speculation on your part? The codebase is open source so it's not like they can hide anything.
- bioemerl 4y agoIt's not so much about the issues, but the potential for issues down the line. For tools like this the aim is always to lay low and expand to reach as far as possible, then once you have a lot of control and trust you can abuse it, often you can abuse it without much loss, because once you have institutional momentum it's very hard to screw it up. You can't operate on If there's a history of abuse of power, only if there is an incentive. I believe there's a very strong incentive in this case.
- Zababa 4y agoI don't really see how can an open source project that you can self host be abused. Do you have any example of that happening?
- bioemerl 4y agoAll you need to do is sneak in something in an update that gives people access to your server, or creates a vulnerability that allows them to get access. The fact that itself hosted is actually a really huge concern, because this thing is sitting on your local network with no firewall between it and everything else that you run. It takes very little to put a vulnerability in a piece of code, and unless you have a person combing every commit with a fine tooth comb, even the fact that it's open source cannot prevent that. No single security measure is bulletproof. Being open source does not counteract the misaligned incentives.
- hericium 4y agoIs it possible to hide users listing[1] on Gitea via configuration? On Gogs it's not configurable and to stop publishing names of all users, including admin account username, it's necessary to either close down the whole service (disable public view of all repos and disable signup) or block certain addresses on proxy level. [1] https://gitea.com/explore/users https://gitea.com/explore/users
- shp0ngle 4y agoFor a certain definition of “painless”. edit: to clarify. It’s fine for a one man show or a small company. Once you get bigger, you start hitting the various issues quite often, and wish for github again.
- grawp 4y agoI sorely lack subscriptions/watches managment in Gitea. I'd like to be able to get a list what i'm watching and filter it on repo, author, type (issue/pr), and reason like I very often do in github. There is also no session managment accessible from user side :(
- nanomonkey 4y agoI've enjoyed using git-ssb (https://scuttlebot.io/apis/community/git-ssb.html https://scuttlebot.io/apis/community/git-ssb.html), which allows me to save and share git repos using the scuttlebutt gossip protocol. Makes for a nice decentralized solution where I can back up between my machines, and those that I'm working on a project with. The only problem that I've found is that my github repo now shows very little activity which make job hunting harder.
- jamal-kumar 4y agoI have some personal projects on my own public git server that hardly anyone knows about but I still have a second remote for that stuff which goes on my github for the jobs.
- klik99 4y agoIt appears as if the main repo along with issue tracking and pull requests is hosted on GitHub: https://github.com/go-gitea/gitea https://github.com/go-gitea/gitea - At least it looks that way, are issues/pull requests mirrored across to GitHub? I have to admit, if the GitHub repo is the main source for issues/PRs, it's a bit of a yellow flag that they're not dogfooding it. That being said - if I didn't need easy CI support I'd probably be using Gitea instead of GitLab CE - GitLab CE is great but it's a resource hog and feels like it's getting slower over the years.
- tylersmith 4y agoI was curious about this so I searched and found that they started using Github before all the necessary features were ready in Gitea, and they are in the process of moving. The only thing left now to do is actually implement a feature to import content from Github. Here is an issue tracking the migration: https://github.com/go-gitea/gitea/issues/1029 https://github.com/go-gitea/gitea/issues/1029
- kayson 4y agoI don't think it's a yellow flag. It's hard enough to get contributors for FOSS as it is. Adding the additional hurdle of creating a new account would be counterproductive. Everyone already has a Github account so it's much easier to host it there. What they really need to do first is copy Gitlab and add support for logging in with Github. Then they could move their repo to gitea without locking out a bunch of contributors (or keep a copy on github and mirror issues/PRs) Edit: looks like you already can login with github and they're working on migrating their repos to gitea!
- 2Gkashmiri 4y agois there a way to sync gitea/gitlab issues to github? i contribute to a project that is on gitlab but there is no discoverability. my idea was, if we had a mirror on github, at least people could look at issues, suggest fixes without having them to login to gitlab.
- 4y ago
- igtztorrero 4y agoI use GitLab CE since 2012, and checking https://docs.gitea.io/en-us/comparison/ https://docs.gitea.io/en-us/comparison/ gitea vs gitlab the main difference is: "Low resource usage (RAM/CPU)" I see why: Gitea is 75%-Golang, 13%-HandleBarsJs GitLab is 85%-Ruby 12%-HTML Never have a problem with Gitlab, but is RUBY is slow and cpu demand I will try it !
- xbeta 4y agoOne of my previous companies use their self-hosted Gitea. That's all good and stuff, but they don't have a dedicated DevOps person, so we actually have to spend extra maintenance on it. Moreover, we were going through SOC-2 auditing at that time and it is much easier to just store our source code in one of the SaaS option like Github/GitLab/Bitbucket for our auditors to check without having me to screenshot everything for them.
- KronisLV 4y agoI recently moved over from self-hosting GitLab to instead having Gitea, Nexus and Drone, because the burden of keeping GitLab up to date was cumbersome, given how it's such a large and complicated software package. I wrote about it in my blog post "Goodbye GitLab; Hello Gitea, Nexus and Drone": https://blog.kronis.dev/articles/goodbye-gitlab-hello-gitea-nexus-and-drone https://blog.kronis.dev/articles/goodbye-gitlab-hello-gitea-... That said, I still find the UI of GitHub and GitLab to be a bit better than Gitea's (the whole organizations/groups navigation feels better), though Gitea is immeasurably more performant when compared to GitLab, especially when the available hardware resources are limited - in the case of 4 GB of RAM being all that I could afford, it's the difference between a really snappy and annoyingly laggy UI. Admittedly, now it's Nexus that loves eating my resources, though for the most part having software like it for managing most of my container images and other packages is pretty cool and worthwhile, though one might also want to explore the alternatives, such as Artifactory or something else. Also, personally I find Drone to be a bit less capable than GitLab CI and its documentation isn't quite as good in comparison - though that's a given, since it's an external tool developed by another company. Though I guess even Jenkins would also be a viable alternative (despite it having certain issues with plugin stability etc.), or many other CI tools, given that Gitea is actually decently supported! In summary, even if there still are a few challenges here and there, the whole setup is a lovely way to self-host your own projects and everything around them in a cost effective manner and whilst also staying in control over your own data. Gitea is an important part of this and overall I'm really glad that we have cool software like it nowadays! At the same time, I'm more than happy to use GitLab or something like it at work, as long as keeping it working nicely, up to date (and paying for the servers) is someone else's responsibility.
- Inversechi 4y agoBy Drone do you mean the `0.8` open source version? If you've not tried Woodpecker it built upon the `0.8` code and added lots of nice functionality, has better documentation, and is in active development. https://woodpecker-ci.org/ https://woodpecker-ci.org/
- KronisLV 4y ago
- mac-chaffee 4y agoI've been happy with Gitea. It's very fast, and upgrades cannot be simpler. Just download the new binary and start it. The migrations run automatically. If you need a git hosting service but "hosting git" isn't your day job, then the alternatives are way more complex than necessary IMO.
- kburman 4y agoI wish this doesn't become a tool for CCP.
- thealistra 4y agoThe site tbh looks awfully similar to github. Can this be like a reason for a lawsuit, if github had a bad day?
- tomohawk 4y agoWe did comparisons between self hosted gitlab and gitea. gitea was considerably easier to set up, and much more bulletproof. gitea was much lighter on resources. We had a use case to be able to mirror thousands of repos. gitlab would fall flat on its face. gitea had no issues. We turned this over to corporate, and they chose gitlab. gitlab had great sales people.
- antaviana 4y agoCan Gitea be configured behind an AWS Load Balancer? I'd like to have the ALB to do OIDC authentication with Azure AD, and also take care of the SSL offloading (so that we can use ACM certificates).
- lapser 4y agoConsidering codeberg.org is a productionized deployment of Gitea, I'm guessing deploying a HA version is possible, and you can bet that an LB can be put in front of it. As for SSO, I'm not sure if Azure AD is supported, but some SSO configurations are supported directly in Gitea[0]. [0] https://docs.gitea.io/en-us/authentication/ https://docs.gitea.io/en-us/authentication/
- antaviana 4y agoFor SSO the idea we have is to configure it at the LB ("Authenticate" in the LB rule for an OIDC source which would be Azure AD) and then Gitea would have to look at the JWT in the header to get from there the authenticated user email. So Azure AD and the AWS LB handle authentication whilst Gitea only handles authorization.