I’ve recently set up my own Gitea instance and I figured I’d share a simple guide on how to do it yourself. Hopefully this will be helpful to anyone looking to get started.

If you have any feedback please feel free to comment it bellow.

  • cizra@lemm.ee
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 months ago

    If you have a place to host Forgejo/Gitea, you have a place to store a Git server. Set it up like this:

    $ git clone --bare myrepo myrepo.bare
    $ scp -r myrepo.bare srv:
    $ cd myrepo
    $ git remote add origin srv:myrepo.bare
    # or
    $ git remote set-url origin srv:myrepo.bare
    

    Now git push etc work similar to GitHub, but you’re using your server (named srv in SSH config, as shown in my previous post) as the remote storage.

    Selfhosted Gitea is a way to get a wiki, bug tracker or whatnot - collaborate, for example, but it’s not necessary to have a Git server for your personal use.