• Git own serwer: How To Protect master Branch?

    From =?UTF-8?B?8J+HtfCfh7FKYWNlayBNYXJjaW4gSmF3b3Jza2nwn4e18J+HsQ==?=@jmj@energokod.gda.pl to comp.programming,comp.os.linux.misc,alt.os.linux on Fri Apr 17 08:00:54 2026
    From Newsgroup: comp.os.linux.misc

    Hello!

    I wish to know: How to correctly setup my own git serwer with access via
    ssh for small programmers team? I wish configure git server in the way
    that only team leader can merge in to master branch. I know git command,
    but I don't know how can I protect master branch on vanilla git server.
    NOTE: I want to avoid github.com nor gitlab.com.
    --
    Thanks in advance!
    Jacek Marcin Jaworski, Pruszcz Gd., woj. Pomorskie, Polska 🇵🇱, EU 🇪🇺;
    tel.: +48-609-170-742, najlepiej w godz.: 5:00-5:55 lub 16:00-17:25; <jmj@energokod.gda.pl>, gpg: 4A541AA7A6E872318B85D7F6A651CC39244B0BFA;
    Domowa s. WWW: <https://energokod.gda.pl>;
    Mini Netykieta: <https://energokod.gda.pl/MiniNetykieta.html>;
    Mailowa Samoobrona: <https://emailselfdefense.fsf.org/pl>.
    UWAGA:
    NIE ZACIĄGAJ "UKRYTEGO DŁUGU"! PŁAĆ ZA PROG. FOSS I INFO. INTERNETOWE! CZYTAJ DARMOWY: "17. Raport Totaliztyczny - Patroni Kontra Bankierzy": <https://energokod.gda.pl/raporty-totaliztyczne/17.%20Patroni%20Kontra%20Bankierzy.pdf>
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.os.linux.misc on Fri Apr 17 06:47:27 2026
    From Newsgroup: comp.os.linux.misc

    On Fri, 17 Apr 2026 08:00:54 +0200, 🇵🇱Jacek Marcin Jaworski🇵🇱 wrote:

    I wish to know: How to correctly setup my own git serwer with access
    via ssh for small programmers team? I wish configure git server in
    the way that only team leader can merge in to master branch.

    <https://github.com/sitaramc/gitolite>
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Pancho@Pancho.Jones@protonmail.com to comp.programming,comp.os.linux.misc,alt.os.linux on Fri Apr 17 10:24:27 2026
    From Newsgroup: comp.os.linux.misc

    On 4/17/26 10:21, Pancho wrote:
    On 4/17/26 07:00, 🇵🇱Jacek Marcin Jaworski🇵🇱 wrote:
    Hello!

    I wish to know: How to correctly setup my own git serwer with access
    via ssh for small programmers team? I wish configure git server in the
    way that only team leader can merge in to master branch. I know git
    command, but I don't know how can I protect master branch on vanilla
    git server.
    NOTE: I want to avoid github.com nor gitlab.com.


    <https://hub.docker.com/r/gitea/gitea>

    Setting up ssh on port 22 was a little involved, but I can explain a way
    to do it if you are interested.

    It is a bit irritating when you mess with followups.

    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From jmj@jmj@energokod.gda.pl to comp.programming,comp.os.linux.misc,alt.os.linux on Sat Apr 18 00:38:12 2026
    From Newsgroup: comp.os.linux.misc

    W dniu 17.04.2026 o 11:24, Pancho pisze:
    <https://hub.docker.com/r/gitea/gitea>

    Setting up ssh on port 22 was a little involved, but I can explain a way
    to do it if you are interested.

    Thanks for answer. But on the above linked WWW site there is no info
    about the Gitea proj. - if it is home page then it explain exactly
    nothing. Gitolite WWW site, linked by Lawrence D’Oliveiro
    <ldo@nz.invalid>, is much more user friendly and it is much more self explanatory.

    It is a bit irritating when you mess with followups.

    I no mess, but I just follow up netiquette:

    <https://en.wikipedia.org/wiki/Crossposting>

    NOTE: Links in references lead in to Netiquette related sites - this is
    prove that crossposting is part of it.
    --
    Jacek Marcin Jaworski, Pruszcz Gd., woj. Pomorskie, Polska 🇵🇱, EU 🇪🇺;
    tel.: +48-609-170-742, najlepiej w godz.: 5:00-5:55 lub 16:00-17:25; <jmj@energokod.gda.pl>, gpg: 4A541AA7A6E872318B85D7F6A651CC39244B0BFA;
    Domowa s. WWW: <https://energokod.gda.pl>;
    Mini Netykieta: <https://energokod.gda.pl/MiniNetykieta.html>;
    Mailowa Samoobrona: <https://emailselfdefense.fsf.org/pl>.
    UWAGA:
    NIE ZACIĄGAJ "UKRYTEGO DŁUGU"! PŁAĆ ZA PROG. FOSS I INFO. INTERNETOWE! CZYTAJ DARMOWY: "17. Raport Totaliztyczny - Patroni Kontra Bankierzy": <https://energokod.gda.pl/raporty-totaliztyczne/17.%20Patroni%20Kontra%20Bankierzy.pdf>

    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Keith Thompson@Keith.S.Thompson+u@gmail.com to comp.programming,comp.os.linux.misc,alt.os.linux on Fri Apr 17 16:42:32 2026
    From Newsgroup: comp.os.linux.misc

    🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> writes:
    W dniu 17.04.2026 o 11:24, Pancho pisze:
    <https://hub.docker.com/r/gitea/gitea>
    Setting up ssh on port 22 was a little involved, but I can explain a
    way to do it if you are interested.

    Thanks for answer. But on the above linked WWW site there is no info
    about the Gitea proj. - if it is home page then it explain exactly
    nothing. Gitolite WWW site, linked by Lawrence D’Oliveiro
    <ldo@nz.invalid>, is much more user friendly and it is much more self explanatory.

    For information about Gitea, see <https://about.gitea.com/>.

    [...]
    --
    Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
    void Void(void) { Void(); } /* The recursive call of the void */
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From jmj@jmj@energokod.gda.pl to comp.programming,comp.os.linux.misc,alt.os.linux on Sat Apr 18 05:03:20 2026
    From Newsgroup: comp.os.linux.misc

    W dniu 18.04.2026 o 01:42, Keith Thompson pisze:
    🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> writes:
    W dniu 17.04.2026 o 11:24, Pancho pisze:
    <https://hub.docker.com/r/gitea/gitea>
    Setting up ssh on port 22 was a little involved, but I can explain a
    way to do it if you are interested.

    Thanks for answer. But on the above linked WWW site there is no info
    about the Gitea proj. - if it is home page then it explain exactly
    nothing. Gitolite WWW site, linked by Lawrence D’Oliveiro
    <ldo@nz.invalid>, is much more user friendly and it is much more self
    explanatory.

    For information about Gitea, see <https://about.gitea.com/>.

    Thank you for the link! But Gitea seems to be another github.com or gitlab.com, so it is not meet my requirements, quote:

    I wish configure git server in the way that only team leader can merge in to master branch. > [...]
    NOTE: I want to avoid github.com nor gitlab.com.
    --
    Jacek Marcin Jaworski, Pruszcz Gd., woj. Pomorskie, Polska 🇵🇱, EU 🇪🇺;
    tel.: +48-609-170-742, najlepiej w godz.: 5:00-5:55 lub 16:00-17:25; <jmj@energokod.gda.pl>, gpg: 4A541AA7A6E872318B85D7F6A651CC39244B0BFA;
    Domowa s. WWW: <https://energokod.gda.pl>;
    Mini Netykieta: <https://energokod.gda.pl/MiniNetykieta.html>;
    Mailowa Samoobrona: <https://emailselfdefense.fsf.org/pl>.
    UWAGA:
    NIE ZACIĄGAJ "UKRYTEGO DŁUGU"! PŁAĆ ZA PROG. FOSS I INFO. INTERNETOWE! CZYTAJ DARMOWY: "17. Raport Totaliztyczny - Patroni Kontra Bankierzy": <https://energokod.gda.pl/raporty-totaliztyczne/17.%20Patroni%20Kontra%20Bankierzy.pdf>

    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Keith Thompson@Keith.S.Thompson+u@gmail.com to comp.programming,comp.os.linux.misc,alt.os.linux on Fri Apr 17 22:26:55 2026
    From Newsgroup: comp.os.linux.misc

    🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> writes:
    W dniu 18.04.2026 o 01:42, Keith Thompson pisze:
    🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> writes:
    W dniu 17.04.2026 o 11:24, Pancho pisze:
    <https://hub.docker.com/r/gitea/gitea>
    Setting up ssh on port 22 was a little involved, but I can explain a
    way to do it if you are interested.

    Thanks for answer. But on the above linked WWW site there is no info
    about the Gitea proj. - if it is home page then it explain exactly
    nothing. Gitolite WWW site, linked by Lawrence D’Oliveiro
    <ldo@nz.invalid>, is much more user friendly and it is much more self
    explanatory.
    For information about Gitea, see <https://about.gitea.com/>.

    Thank you for the link! But Gitea seems to be another github.com or gitlab.com, so it is not meet my requirements, quote:

    I wish configure git server in the way that only team leader can merge in to master branch. > [...]
    NOTE: I want to avoid github.com nor gitlab.com.

    github.com and gitlab.com are sites that host git repos. gitlab can
    also be self-hosted; you can set up your own instance.

    gitea is software that lets you self-host a git service.

    <https://about.gitea.com/products/>

    I haven't used it.

    I have git repos on my home system, accessed via ssh, with no extra
    software required. I'm the only one using them, so I don't know
    whether it would meet your requirements. I'm not entirely clear
    on what your requirements are.
    --
    Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
    void Void(void) { Void(); } /* The recursive call of the void */
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Pancho@Pancho.Jones@proton.me to comp.programming,comp.os.linux.misc,alt.os.linux on Sat Apr 18 07:08:27 2026
    From Newsgroup: comp.os.linux.misc

    On 18/04/2026 06:26, Keith Thompson wrote:
    🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> writes:
    W dniu 18.04.2026 o 01:42, Keith Thompson pisze:
    🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> writes:
    W dniu 17.04.2026 o 11:24, Pancho pisze:
    <https://hub.docker.com/r/gitea/gitea>
    Setting up ssh on port 22 was a little involved, but I can explain a >>>>> way to do it if you are interested.

    Thanks for answer. But on the above linked WWW site there is no info
    about the Gitea proj. - if it is home page then it explain exactly
    nothing. Gitolite WWW site, linked by Lawrence D’Oliveiro
    <ldo@nz.invalid>, is much more user friendly and it is much more self
    explanatory.
    For information about Gitea, see <https://about.gitea.com/>.

    Thank you for the link! But Gitea seems to be another github.com or
    gitlab.com, so it is not meet my requirements, quote:

    I wish configure git server in the way that only team leader can merge in to master branch. > [...]
    NOTE: I want to avoid github.com nor gitlab.com.

    github.com and gitlab.com are sites that host git repos. gitlab can
    also be self-hosted; you can set up your own instance.

    gitea is software that lets you self-host a git service.

    <https://about.gitea.com/products/>

    I haven't used it.

    I have git repos on my home system, accessed via ssh, with no extra
    software required. I'm the only one using them, so I don't know
    whether it would meet your requirements. I'm not entirely clear
    on what your requirements are.


    I've used but Gitea and Gitlab self hosted. Gitea is much lighter on
    resources (RAM) and I think much quicker. I switched maybe 5 years ago.

    Jacek wanted specific branch permissions, which AIUI plain git does not provide.

    The docker version of Gitea is easy to install and runs fine on my rPi4.

    You can lead a horse to water...
    --- Synchronet 3.21f-Linux NewsLink 1.2