Skip to content
  • Categories
  • Recent
  • Tags
  • All Topics
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Caint logo. It's just text.
  1. Home
  2. Selfhosted
  3. What is the easiest way to have a self hosted git server?

What is the easiest way to have a self hosted git server?

Scheduled Pinned Locked Moved Selfhosted
selfhosted
19 Posts 14 Posters 8 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z zedotelhado@lemmy.world

    I’ve been recently dabbling on rust, and I am have been mostly doing that on my laptop.
    However, I also have a desktop and once in a while I would like to resume my stuff from the laptop, but without manual file transfers.

    I know git by design does this, but I would like to use my current docker setup with Ubuntu server to have a very simple git server.

    What would be the simplest git server to have in this situation? Keep in mind I am not planning to expose none of this to the internet

    whatsherbucket@lemmy.worldW This user is from outside of this forum
    whatsherbucket@lemmy.worldW This user is from outside of this forum
    whatsherbucket@lemmy.world
    wrote last edited by
    #3

    Check out Gitea. It was pretty easy to set up with docker and they have pretty decent docs.

    artimanA 1 Reply Last reply
    3
    • Z zedotelhado@lemmy.world

      I’ve been recently dabbling on rust, and I am have been mostly doing that on my laptop.
      However, I also have a desktop and once in a while I would like to resume my stuff from the laptop, but without manual file transfers.

      I know git by design does this, but I would like to use my current docker setup with Ubuntu server to have a very simple git server.

      What would be the simplest git server to have in this situation? Keep in mind I am not planning to expose none of this to the internet

      PortNullP This user is from outside of this forum
      PortNullP This user is from outside of this forum
      PortNull
      wrote last edited by
      #4

      Many excellent replies. Just want to add https://github.com/charmbracelet/soft-serve as an option

      S 1 Reply Last reply
      3
      • whatsherbucket@lemmy.worldW whatsherbucket@lemmy.world

        Check out Gitea. It was pretty easy to set up with docker and they have pretty decent docs.

        artimanA This user is from outside of this forum
        artimanA This user is from outside of this forum
        artiman
        wrote last edited by
        #5

        gitea has been replaced by forgejo

        Z T 2 Replies Last reply
        7
        • I illusionist@lemmy.zip

          Using git is oftentimes a good idea but does not fit your description. Just use syncthing or another cloud thing. You can still use git but without a dedicated berg/tea/hub/lab/bucket server

          cecilkorik@lemmy.caC This user is from outside of this forum
          cecilkorik@lemmy.caC This user is from outside of this forum
          cecilkorik@lemmy.ca
          wrote last edited by
          #6

          Horrible idea. You’ll likely end up syncing a mess of unnecessary, incompatible and conflicting binary build files onto different platforms, you’ll end up with internal file conflicts that are impossible to properly resolve and will destroy your repo, especially if you’re still using git on top of it. Don’t do this. Git has its own synchronization mechanisms for a reason, they are extremely mature and specifically designed for maximum efficiency, safety and correctness for the task at hand, which is managing source code. Millions of people use git for source code every day. It is a solved problem.

          Syncthing is literally the WRONG tool for this job. It is a great tool for many situations, but you are using it as a hammer when what you need is a saw.

          K 1 Reply Last reply
          0
          • artimanA artiman

            gitea has been replaced by forgejo

            Z This user is from outside of this forum
            Z This user is from outside of this forum
            zeoic@lemmy.world
            wrote last edited by
            #7

            Why is that? The project still seems to be available / updating

            artimanA 1 Reply Last reply
            0
            • artimanA artiman

              gitea has been replaced by forgejo

              T This user is from outside of this forum
              T This user is from outside of this forum
              TehNomad
              wrote last edited by
              #8

              I think Forgejo is a community-driven fork of Gitea. Gitea development is still active.

              Possibly linuxP artimanA 2 Replies Last reply
              1
              • Z zedotelhado@lemmy.world

                I’ve been recently dabbling on rust, and I am have been mostly doing that on my laptop.
                However, I also have a desktop and once in a while I would like to resume my stuff from the laptop, but without manual file transfers.

                I know git by design does this, but I would like to use my current docker setup with Ubuntu server to have a very simple git server.

                What would be the simplest git server to have in this situation? Keep in mind I am not planning to expose none of this to the internet

                Matthias LiffersM This user is from outside of this forum
                Matthias LiffersM This user is from outside of this forum
                Matthias Liffers
                wrote last edited by
                #9

                I use Forjego, and it's not exposed to the Internet.

                1 Reply Last reply
                0
                • Z zedotelhado@lemmy.world

                  I’ve been recently dabbling on rust, and I am have been mostly doing that on my laptop.
                  However, I also have a desktop and once in a while I would like to resume my stuff from the laptop, but without manual file transfers.

                  I know git by design does this, but I would like to use my current docker setup with Ubuntu server to have a very simple git server.

                  What would be the simplest git server to have in this situation? Keep in mind I am not planning to expose none of this to the internet

                  C This user is from outside of this forum
                  C This user is from outside of this forum
                  corsicanguppy@lemmy.ca
                  wrote last edited by
                  #10
                  1. Install Rocky9
                  2. Yum install gitlab-omnibus
                  3. Oh. We’re done.
                  1 Reply Last reply
                  0
                  • T TehNomad

                    I think Forgejo is a community-driven fork of Gitea. Gitea development is still active.

                    Possibly linuxP This user is from outside of this forum
                    Possibly linuxP This user is from outside of this forum
                    Possibly linux
                    wrote last edited by
                    #11

                    Look at the number of commits

                    C 1 Reply Last reply
                    0
                    • Possibly linuxP Possibly linux

                      Look at the number of commits

                      C This user is from outside of this forum
                      C This user is from outside of this forum
                      corsicanguppy@lemmy.ca
                      wrote last edited by
                      #12

                      Churn != Improvement

                      Possibly linuxP 1 Reply Last reply
                      1
                      • cecilkorik@lemmy.caC cecilkorik@lemmy.ca

                        Horrible idea. You’ll likely end up syncing a mess of unnecessary, incompatible and conflicting binary build files onto different platforms, you’ll end up with internal file conflicts that are impossible to properly resolve and will destroy your repo, especially if you’re still using git on top of it. Don’t do this. Git has its own synchronization mechanisms for a reason, they are extremely mature and specifically designed for maximum efficiency, safety and correctness for the task at hand, which is managing source code. Millions of people use git for source code every day. It is a solved problem.

                        Syncthing is literally the WRONG tool for this job. It is a great tool for many situations, but you are using it as a hammer when what you need is a saw.

                        K This user is from outside of this forum
                        K This user is from outside of this forum
                        koala@programming.dev
                        wrote last edited by
                        #13

                        To be fair, if you want to sync your work across two machines, Git is not ideal because well, you must always remember to push, If you don’t push before switching to the other machine, you’re out of luck.

                        Syncthing has no such problem, because it’s real time.

                        However, it’s true that you cannot combine Syncthing and Git. There are solutions like https://github.com/tkellogg/dura, but I have not tested it.

                        There’s some lack of options in this space. For some, it might be nicer to run an online IDE.

                        …

                        To add something, I second the “just use Git over ssh without installing any additional server”. An additional variation is using something like Gitolite to add multi-user support to raw Git, if you need to support multiple users and permissions; it’s still lighter than running Forgejo.

                        1 Reply Last reply
                        0
                        • PortNullP PortNull

                          Many excellent replies. Just want to add https://github.com/charmbracelet/soft-serve as an option

                          S This user is from outside of this forum
                          S This user is from outside of this forum
                          sylphio@lemmy.ml
                          wrote last edited by
                          #14

                          Do you have any experience with it? I am curious about it and wonder how is the usability in its current state. I have not seen any independent review or feedback about it yet.

                          todotoroT PortNullP 2 Replies Last reply
                          0
                          • Z zeoic@lemmy.world

                            Why is that? The project still seems to be available / updating

                            artimanA This user is from outside of this forum
                            artimanA This user is from outside of this forum
                            artiman
                            wrote last edited by artiman@piefed.social
                            #15

                            it’s been forked Into forgejo a community driven fork if you don’t care that they are community based, they are also implementing federation

                            1 Reply Last reply
                            0
                            • T TehNomad

                              I think Forgejo is a community-driven fork of Gitea. Gitea development is still active.

                              artimanA This user is from outside of this forum
                              artimanA This user is from outside of this forum
                              artiman
                              wrote last edited by
                              #16

                              forgejo is implementing federation and gitea is not https://forgejo.org/compare-to-gitea/ if you dont care that its community based, federation is the only thing i could tell you

                              1 Reply Last reply
                              0
                              • S sylphio@lemmy.ml

                                Do you have any experience with it? I am curious about it and wonder how is the usability in its current state. I have not seen any independent review or feedback about it yet.

                                todotoroT This user is from outside of this forum
                                todotoroT This user is from outside of this forum
                                todotoro
                                wrote last edited by todotoro@midwest.social
                                #17

                                Happy to oblige your request stranger.

                                Softserve is perfectly usable, especially if your needs are more basic (its for you, no need for PRs, etc). The only gotcha is you’ll need a ed55219 key to use it.

                                It has been stable for me the last few years I’ve known about it. Ive run it as a container of some sort for that entire time. It’s definitely still maturing though, with more features added semi frequently.

                                I use it for literally everything I want self hosted, which is like 7-8 git repos for different things.

                                1 Reply Last reply
                                1
                                • C corsicanguppy@lemmy.ca

                                  Churn != Improvement

                                  Possibly linuxP This user is from outside of this forum
                                  Possibly linuxP This user is from outside of this forum
                                  Possibly linux
                                  wrote last edited by
                                  #18

                                  Not necessarily

                                  Notice Forgejo is being hosted on Forgejo. The community behind it is much stronger while Gitea is some startup that is desperately trying to be relevant.

                                  1 Reply Last reply
                                  1
                                  • S sylphio@lemmy.ml

                                    Do you have any experience with it? I am curious about it and wonder how is the usability in its current state. I have not seen any independent review or feedback about it yet.

                                    PortNullP This user is from outside of this forum
                                    PortNullP This user is from outside of this forum
                                    PortNull
                                    wrote last edited by
                                    #19

                                    I use it for my personal projects and its perfectly usuable. If you want people to contribute you’ll just have to do it the old fashioned email patch way.
                                    You can use RSA keys but it requires a little fiddling. I’ve used them but needed to massage something. Now I just use ed keys.
                                    The SSH ui is perfectly fine. Your repos are stored as bare repos on the server in the configured directory. So they are easily backed up as regular files.
                                    It also supporta LFS.

                                    Let me knownif you have any other questions

                                    1 Reply Last reply
                                    2

                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • All Topics
                                    • Popular
                                    • World
                                    • Users
                                    • Groups