Differences between main and release branches?
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
'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 <[email protected]> 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
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 <[email protected]> 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
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 <[email protected]> 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 <[email protected]> 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
The only way you would have got 'main' branch is if '-b release' option was missing [or there was some error in specifying it. Either way - 'git checkout release' would set the repo to the desired 'release' branch. Satish On Mon, 3 Oct 2022, fujisan wrote:
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 <[email protected]> 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 <[email protected]> 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
participants (3)
-
fujisan -
Jose E. Roman -
Satish Balay