<div dir="ltr"><div dir="ltr"><div dir="ltr">I probably did:<div><pre id="gmail-codecell0" style="box-sizing:border-box;overflow:auto;clear:both;font-size:13.125px;margin-top:0px;margin-bottom:0px;padding:1rem;line-height:16.4062px;border-radius:0.25rem"><span style="font-family:Arial,Helvetica,sans-serif">git clone -b release <a href="https://gitlab.com/petsc/petsc.git">https://gitlab.com/petsc/petsc.git</a> petsc</span></pre></div></div></div><div>like the documentation says. But I found out that I was in branch main.</div><div>Cloning 3.17.4 is an abuse of language. I ment cloning petsc when that release was 3.17.4.</div><div><br></div><div>Anyway I git pulled this morning and checked out branch release.</div><div><br></div><div>Fuji</div><div><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 3, 2022 at 5:29 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">What were the git commands used here [for each of these cases]?<br>
<br>
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.<br>
<br>
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].<br>
<br>
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]<br>
<br>
Satish<br>
<br>
On Mon, 3 Oct 2022, Jose E. Roman wrote:<br>
<br>
> 'main' is the development version, 'release' is the latest release version.<br>
> You can select the branch when cloning or later with git checkout.<br>
> See <a href="https://petsc.org/release/install/download/#recommended-download" rel="noreferrer" target="_blank">https://petsc.org/release/install/download/#recommended-download</a><br>
> <br>
> Jose<br>
> <br>
> <br>
> > El 3 oct 2022, a las 11:08, fujisan <<a href="mailto:fujisan43@gmail.com" target="_blank">fujisan43@gmail.com</a>> escribió:<br>
> > <br>
> > Hi everyone,<br>
> > What are the differences between the 'main' and 'release' branches?<br>
> > <br>
> > Where I git cloned version 3.17.4, I was by default in the 'main' branch.<br>
> > 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.<br>
> > <br>
> > Fuji<br>
> <br>
</blockquote></div></div>