[petsc-users] Differences between main and release branches?

fujisan fujisan43 at gmail.com
Mon Oct 3 12:34:00 CDT 2022


I probably did:

git clone -b release https://gitlab.com/petsc/petsc.git petsc

like the documentation says. But I found out that I was in branch main.
Cloning 3.17.4 is an abuse of language. I ment cloning petsc when that
release was 3.17.4.

Anyway I git pulled this morning and checked out branch release.

Fuji



On Mon, Oct 3, 2022 at 5:29 PM Satish Balay <balay at mcs.anl.gov> wrote:

> What were the git commands used here [for each of these cases]?
>
> Normally you would checkout a branch - and pull on it. So "cloning 3.17.4"
> doesn't really make sense - as there is no "3.17.4" branch.
>
> you ether checkout a tag - v3.17.4 - then you don't get a branch to pull
> on. [sure you can do "git clone -b release" - but that's a branch].
>
> So the statement "3.17.4 gave main branch, 3.18.0 gave release branch"
> doesn't really make sense to me [from the way git work]
>
> Satish
>
> On Mon, 3 Oct 2022, Jose E. Roman wrote:
>
> > 'main' is the development version, 'release' is the latest release
> version.
> > You can select the branch when cloning or later with git checkout.
> > See https://petsc.org/release/install/download/#recommended-download
> >
> > Jose
> >
> >
> > > El 3 oct 2022, a las 11:08, fujisan <fujisan43 at gmail.com> escribió:
> > >
> > > Hi everyone,
> > > What are the differences between the 'main' and 'release' branches?
> > >
> > > Where I git cloned version 3.17.4, I was by default in the 'main'
> branch.
> > > Where I git cloned version 3.18.0 (I haven't git pulled from 3.17.4
> yet), I was by default in the 'release' branch.
> > >
> > > Fuji
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221003/dc687e4c/attachment.html>


More information about the petsc-users mailing list