# git new features: following and priority branches with new git flow

3 messages from 2025-12-15 to 2025-12-15. Participants: Milos Markovic, Kristoffer Haugsbakk.
Thread: https://gitlist.dev/t/64627

## Milos Markovic, 2025-12-15 10:15

Subject: git new features: following and priority branches with new git flow
Message-ID: <CAKRouPtDrCgUk1bQeF+ao04rtK_jg8KxD6Oju8vw8H-ZYt-7Ow@mail.gmail.com>
URL: https://gitlist.dev/e/CAKRouPtDrCgUk1bQeF%2Bao04rtK_jg8KxD6Oju8vw8H-ZYt-7Ow%40mail.gmail.com

```
Dear all,

After decades of using git (as dev, as manager and as a cto), and
considering different git flows I noticed some gaps.

Briefly, different git flows perceive branches equally and shape
history from developers perspective. I realized that if the
perspective is written from a devops perspective ( focusing on higher
priority branches, like prod first , than qa, and with least focus on
dev) the source history could be organized differently ( from my
perspective a bit better). We used the following approach for a couple
of years.

Therefore I invite you to check the following workflow here
https://github.com/k4hvd1/rebaser-flow .

It would be my pleasure to discuss new features in git and how this
approach could be used. Finally if it makes sense for you I will show
you other materials and we could think about implementing it in git .

Regards
Milos

```

## Kristoffer Haugsbakk, 2025-12-15 15:13

Subject: Re: git new features: following and priority branches with new git flow
Message-ID: <8bcfe2fe-3522-413f-b4d1-13e048028296@app.fastmail.com>
URL: https://gitlist.dev/e/8bcfe2fe-3522-413f-b4d1-13e048028296%40app.fastmail.com
In-Reply-To: <CAKRouPtDrCgUk1bQeF+ao04rtK_jg8KxD6Oju8vw8H-ZYt-7Ow@mail.gmail.com>

```
On Mon, Dec 15, 2025, at 11:15, Milos Markovic wrote:
> Dear all,
>
> After decades of using git (as dev, as manager and as a cto), and
> considering different git flows I noticed some gaps.
>
> Briefly, different git flows perceive branches equally and shape
> history from developers perspective. I realized that if the
> perspective is written from a devops perspective ( focusing on higher
> priority branches, like prod first , than qa, and with least focus on
> dev) the source history could be organized differently ( from my
> perspective a bit better). We used the following approach for a couple
> of years.
>
> Therefore I invite you to check the following workflow here
> https://github.com/k4hvd1/rebaser-flow .
>
> It would be my pleasure to discuss new features in git and how this
> approach could be used. Finally if it makes sense for you I will show
> you other materials and we could think about implementing it in git .
>
> Regards
> Milos

Those `gitscript.sh` should be shell functions. They will not work
unless your default shell is Bash.

E.g.

    git config --global alias.pld  '![[ $(git rev-parse --abbrev-ref HEAD) == "dev" ]] && git fetch --all &&  git rebase origin/dev && git rebase origin/qa && git rebase origin/production'

```

## Milos Markovic, 2025-12-15 16:00

Subject: Re: git new features: following and priority branches with new git flow
Message-ID: <CAKRouPs+TSfg-HGnEgr9KBq_-1xMVktty963v+A31YWFTnPj_g@mail.gmail.com>
URL: https://gitlist.dev/e/CAKRouPs%2BTSfg-HGnEgr9KBq_-1xMVktty963v%2BA31YWFTnPj_g%40mail.gmail.com
In-Reply-To: <8bcfe2fe-3522-413f-b4d1-13e048028296@app.fastmail.com>

```
The idea is to remove script and to have commands in git directly:

 --follow-branch BRANCH_NAME // name of the branch that will always be
rebased when pull command is executed

On Mon, Dec 15, 2025 at 4:14 PM Kristoffer Haugsbakk
<kristofferhaugsbakk@fastmail.com> wrote:
>
> On Mon, Dec 15, 2025, at 11:15, Milos Markovic wrote:
> > Dear all,
> >
> > After decades of using git (as dev, as manager and as a cto), and
> > considering different git flows I noticed some gaps.
> >
> > Briefly, different git flows perceive branches equally and shape
> > history from developers perspective. I realized that if the
> > perspective is written from a devops perspective ( focusing on higher
> > priority branches, like prod first , than qa, and with least focus on
> > dev) the source history could be organized differently ( from my
> > perspective a bit better). We used the following approach for a couple
> > of years.
> >
> > Therefore I invite you to check the following workflow here
> > https://github.com/k4hvd1/rebaser-flow .
> >
> > It would be my pleasure to discuss new features in git and how this
> > approach could be used. Finally if it makes sense for you I will show
> > you other materials and we could think about implementing it in git .
> >
> > Regards
> > Milos
>
> Those `gitscript.sh` should be shell functions. They will not work
> unless your default shell is Bash.
>
> E.g.
>
>     git config --global alias.pld  '![[ $(git rev-parse --abbrev-ref HEAD) == "dev" ]] && git fetch --all &&  git rebase origin/dev && git rebase origin/qa && git rebase origin/production'

```
