Post A4TPnB7gqmBfBZ8XTc by tagomago@mastodon.social
 (DIR) More posts by tagomago@mastodon.social
 (DIR) Post #A4TKcSneHxQn3KpleC by tek@freeradical.zone
       2021-02-20T17:29:31Z
       
       0 likes, 1 repeats
       
       I was reading an argument about whether GitHub or Gitlab are better for hosting tiny personal-use-only projects.Remember, you can create a bare repo on your own computer and use that. You don’t have to use *any* external company to host your git project.
       
 (DIR) Post #A4TLLYRg93Bvas3haK by pino_ac@mastodon.social
       2021-02-20T17:37:39Z
       
       0 likes, 1 repeats
       
       @tek No no. We are in a transition. Everything has to be in the cloud. Because marketing tells people so.One of the next marketing steps are then maybe specialized "local clouds" where you can install a not-really-free spyware stack locally, which will give the people back some of the things they currently give up for nothing; of course not for free, but in a subscription model.A local bare repo also isn't such a great social network and has no nifty animations!
       
 (DIR) Post #A4TM4Yh44LGfOWiNuq by lindsays@hackers.town
       2021-02-20T17:45:47Z
       
       0 likes, 0 repeats
       
       @tek ALSO: gitea.which, if you're badass, you can run on your local computer too
       
 (DIR) Post #A4TOB7JYSjMyPmyPdg by tek@freeradical.zone
       2021-02-20T18:09:23Z
       
       0 likes, 0 repeats
       
       @lindsays I ❤️❤️❤️ gitea. It’s everything I’d actually use in Gitlab, in a single binary that uses hardly any RAM. That’s what I use for my own stuff.
       
 (DIR) Post #A4TOgCne7NQgP8s9Zo by lindsays@hackers.town
       2021-02-20T18:15:00Z
       
       0 likes, 0 repeats
       
       @tek right!! normally i fight against things like GO binaries for my software but honestly? fuck. gitea is A Beautiful Exception
       
 (DIR) Post #A4TOsw1lmuXM9QY4dE by murks@social.tchncs.de
       2021-02-20T18:16:14Z
       
       0 likes, 0 repeats
       
       @pino_ac @tek That sounds terribly plausible. Locally "hosted" repo with all the "social" features through "the cloud".
       
 (DIR) Post #A4TOswU85TDpZNoips by tek@freeradical.zone
       2021-02-20T18:17:19Z
       
       0 likes, 0 repeats
       
       @murks @pino_ac Heh. Gitea + ActivityPub.
       
 (DIR) Post #A4TP4MB8tmiQRWNYXI by tek@freeradical.zone
       2021-02-20T18:19:23Z
       
       0 likes, 0 repeats
       
       @lindsays Gitlab is nice but eats more RAM than my Mastodon server. “What resources do I need to run this Rails app?” “How much you got?”Gitea (and Gogs before it) is amazing in how much it can pack into a tiny footprint. I love it so much.
       
 (DIR) Post #A4TPJivUbdS9KxO0x6 by murks@social.tchncs.de
       2021-02-20T18:22:10Z
       
       0 likes, 0 repeats
       
       @tek @pino_ac I doubt that does similar levels of integration as Github.
       
 (DIR) Post #A4TPO7QlRQ5KUi6pSS by tek@freeradical.zone
       2021-02-20T18:22:56Z
       
       0 likes, 0 repeats
       
       @murks @pino_ac I’m positive it doesn’t. And for personal stuff, I’m A-OK with that.
       
 (DIR) Post #A4TPWM6CmwGcIvQ7rE by lindsays@hackers.town
       2021-02-20T18:24:26Z
       
       0 likes, 0 repeats
       
       @tek truuuuth though.not to mention, gitea Does The Job. like seriously.
       
 (DIR) Post #A4TPnB7gqmBfBZ8XTc by tagomago@mastodon.social
       2021-02-20T18:27:28Z
       
       0 likes, 0 repeats
       
       @tek What I do.
       
 (DIR) Post #A4TQtMmcVjXL2ZnPd2 by tek@freeradical.zone
       2021-02-20T18:39:48Z
       
       0 likes, 3 repeats
       
       HOWTO:$ mkdir -p ~/src/myproject$ cd ~/src/myproject$ git init --bare$ cd ~$ git clone ~/src/myproject$ cd myprojectThere, done. Now you have a 100% fully functional git repo that doesn’t require a network connection and supports every single git feature. Pull it, push it, branch it, revert it, whatever: it’s your own repo and you can do whatever you want with it. And you don’t have to sign up for anything or agree to a Terms of Service or share your work or trust a company you dislike.
       
 (DIR) Post #A4TRApx1JqM6QRzVhI by suivran@elekk.xyz
       2021-02-20T18:42:58Z
       
       0 likes, 0 repeats
       
       @tek I rent a linux vm somewhere and it's where I keep my repos in exactly this mannernot quite my machine, but a considerable step up imoand making it truly local is just a wget away
       
 (DIR) Post #A4TRXFK5fP83UET2zw by koherecoWatchdog@freeradical.zone
       2021-02-20T18:47:01Z
       
       0 likes, 0 repeats
       
       @tek i wouldn't say "fully functional" b/c there's no bug tracker with that method.  This is a major short-coming of the whole #git design, which would have done better to design a bug tracking db into the repo; not just for local use but also to port a project from one repo to another.
       
 (DIR) Post #A4TRdRqzzTcQ5UokbY by somenxavier@mathstodon.xyz
       2021-02-20T18:48:06Z
       
       0 likes, 0 repeats
       
       @tek but you have two copies of your project: one in bare and one in non-bare. Splitting bare and non-bare repos is the worst in git. With mercurial and other distributed source revision systems it does not happen.
       
 (DIR) Post #A4TRedCTI5AbZEQQi0 by tek@freeradical.zone
       2021-02-20T18:48:17Z
       
       0 likes, 0 repeats
       
       @suivran I use Gitea (like @lindsays and I were chatting about) on a Linux VM because a lot of my workflow is:- Write a thing on my laptop- Push it to the Linux VM- Another machine fetches it from that server and deploys itso I needed my repo to be publicly reachable, plus Gitea is just so nice. But behind the scenes that’s just my project.git directory on a server I own, and if I decide to hate Gitea it’s trivial to replace it.
       
 (DIR) Post #A4TRpHEPJIsYcMPIMC by A0bMJlR1vXmshMJTm4.pagrus@tears.intherain.club
       2021-02-20T18:50:01Z
       
       0 likes, 0 repeats
       
       @tek For me the main appeal for using GH/GL was in looking for work and the collaborative aspect, which you (usually) don't get with a local repo.I keep asking about a federated git host and people are like duh it already exists, and I am pretty sure they're missing the point
       
 (DIR) Post #A4TRq0PdKPb4kD0ObQ by tek@freeradical.zone
       2021-02-20T18:50:17Z
       
       0 likes, 0 repeats
       
       @koherecoWatchdog It’s fully functional as a git repo — it supports everything git does. But I don’t ever use a bug tracker for personal projects: a Markdown todo file is about the level of functionality I want.
       
 (DIR) Post #A4TRsMHB0jaD8GAhgu by suivran@elekk.xyz
       2021-02-20T18:50:50Z
       
       0 likes, 0 repeats
       
       @tek Yep, I have multiple clients I access it from, and it's a great solution if you want that but don't wanna physically maintain a device exposed to the internet yourself~
       
 (DIR) Post #A4TS6IqqXZUOZ5VOF6 by tek@freeradical.zone
       2021-02-20T18:53:21Z
       
       0 likes, 0 repeats
       
       @somenxavier I do that on purpose: you can always `rm -rf ~/myproject` and re-clone it if you must. I also like the explicit “push” step. You don’t have to make that extra step but it seems to save a lot of pain later.
       
 (DIR) Post #A4TSbWtyLqKL7PrDto by ekaitz_zarraga@mastodon.social
       2021-02-20T18:58:58Z
       
       0 likes, 0 repeats
       
       @tek What is a "bare" repository?what's the difference between git init and --bare?
       
 (DIR) Post #A4TSsyZqhx8TsKlQki by tek@freeradical.zone
       2021-02-20T19:02:09Z
       
       0 likes, 0 repeats
       
       @pagrus Sure, this is isn’t a good fit for that use case. If it’s a small group of friends, I use Gitea. If it’s going to involve strangers, I pick GH/GL.
       
 (DIR) Post #A4TT0LTFzKP6uEC7QO by A0bMJlR1vXmshMJTm4.pagrus@tears.intherain.club
       2021-02-20T19:03:29Z
       
       0 likes, 0 repeats
       
       @tek For me it was as much about getting used to the tool as anything else, so it is/was appropriate even for little personal things
       
 (DIR) Post #A4TT9Gxs6yTZXJlsQ4 by tek@freeradical.zone
       2021-02-20T19:05:05Z
       
       0 likes, 0 repeats
       
       @ekaitz_zarraga Bare repos don’t have a working directory. They’re what you want to host on a server (even if that’s in a directory on your local filesystem). `git init` without --bare creates one you can work in, edit files, stage them, and do all that other stuff.
       
 (DIR) Post #A4TTDE4OoeGviVi36m by ekaitz_zarraga@mastodon.social
       2021-02-20T19:05:48Z
       
       0 likes, 0 repeats
       
       @tek so what can you do in a bare repo? just clone?
       
 (DIR) Post #A4TTP0sHhZveGcfCDI by purple@nya.social
       2021-02-20T19:01:56.636Z
       
       0 likes, 0 repeats
       
       @tek@freeradical.zone another AWESOME upside to this is you can use literally anything other than git! wanna try mercurial? go for it!
       
 (DIR) Post #A4TTP1G2HGvZSHmAEa by tek@freeradical.zone
       2021-02-20T19:07:57Z
       
       0 likes, 0 repeats
       
       @purple Sure!
       
 (DIR) Post #A4TTXdVlw0oCPjFGts by tek@freeradical.zone
       2021-02-20T19:09:30Z
       
       0 likes, 0 repeats
       
       @ekaitz_zarraga Yep: clone, push, pull, etc. Basically you treat it like you would a GitHub server.
       
 (DIR) Post #A4Th38QqK0nAh3I1iK by dpreacher@freeradical.zone
       2021-02-20T21:40:51Z
       
       0 likes, 0 repeats
       
       @tek thanks for the detailed steps. i have been learning through using git all of last year and continuing. i started with just a git init folder but i didn't know the right way and this simple way to use a git init --bare folder. now i am rather clear about its purpose. it's the location to push to and pull from whereas a git init folder is where we commit changes... my insufficient knowledge probably affects accuracy of my git vocabulary :)
       
 (DIR) Post #A4Ti4toFl5JzsNe2W8 by michal@toot.kottman.xyz
       2021-02-20T21:52:20Z
       
       0 likes, 0 repeats
       
       @tek Why not just `$ git init myproject`?
       
 (DIR) Post #A4TiHl2ffPPyRtWJ8q by tek@freeradical.zone
       2021-02-20T21:54:42Z
       
       0 likes, 0 repeats
       
       @michal That’s definitely an option! I like the explicit push step though. It’s like a database transaction almost. And if you mess things up badly with a separate repo, you can delete the whole working directory and start over. Finally, you can later copy it to another server, update your remote URL, and keep working away without changing your workflow whatsoever.
       
 (DIR) Post #A4TiLT909X8y68FbwO by tek@freeradical.zone
       2021-02-20T21:55:22Z
       
       0 likes, 0 repeats
       
       @dpreacher You explained it very well! 🙂
       
 (DIR) Post #A4TjS0lYA1f047xtR2 by dpreacher@freeradical.zone
       2021-02-20T22:07:46Z
       
       0 likes, 0 repeats
       
       @tek :) from barely knowing to knowing --bare I git some of it now
       
 (DIR) Post #A4TkBl6shXpCpXkyQ4 by michal@toot.kottman.xyz
       2021-02-20T22:15:59Z
       
       0 likes, 0 repeats
       
       @tek I think this is also the workflow for SQLite creator's https://fossil-scm.org - first you create a "new" repository, and then you "open" one or more local "source trees". Everything is contained within a single file (a SQLite repo database, including wiki, tickets/bugs, forum, ...) that you can move around or sync remotely with other repos.
       
 (DIR) Post #A4ToPaoQBV18lNySUS by tek@freeradical.zone
       2021-02-20T23:03:21Z
       
       0 likes, 0 repeats
       
       @michal That’s a very neat setup. I’ve never played with Fossil but get the appeal.
       
 (DIR) Post #A4TqBkZLJPDqsTRrEG by kemonine@pleroma.kemonine.info
       2021-02-20T23:20:16.937482Z
       
       0 likes, 0 repeats
       
       @tek i have fossil on my short list of options if i ever bail on giteathe only downside i've run into is folks tend not to know much/anything about it so it can be hard for non personal needs and/or the whole 'but its not on github so it doesnt exist!' thing@michal
       
 (DIR) Post #A4TqBkw1x3N20q3yam by tek@freeradical.zone
       2021-02-20T23:23:15Z
       
       0 likes, 0 repeats
       
       @kemonine @michal I think that’s been my blocker. There’s such a network effect supporting the Git ecosystem.
       
 (DIR) Post #A4Trj2jusK6uk7piwi by kemonine@pleroma.kemonine.info
       2021-02-20T23:24:55.491156Z
       
       0 likes, 0 repeats
       
       @tekthere is very much a github problem imonot much we can do though. self hosted infra is no easy task and can quickly become a distraction  @michal
       
 (DIR) Post #A4Trj3E34IDIFZvmue by tek@freeradical.zone
       2021-02-20T23:40:28Z
       
       0 likes, 0 repeats
       
       @kemonine @michal To a point, sure. I mention Gitea earlier which is a nice counterexample of infra that’s super easy to host.
       
 (DIR) Post #A4U34z7M7ZMRNOShmq by codesections@fosstodon.org
       2021-02-21T01:47:41Z
       
       0 likes, 0 repeats
       
       @tek > HOWTO:  $ mkdir -p ~/src/myproject  $ cd ~/src/myproject  $ git init --bare  $ cd ~  $ git clone ~/src/myproject  $ cd myproject> There, done. Now you have a 100% fully functional git repo that doesn’t require a network connectionI've thought about doing this a few times, but I've never had a project that I care enough about to want git, but not enough to want it saved on more than one computer.(I've ended up using a pi, but that loses the instant/non-networked setup)