developers:git:specificities_git_abinit
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
developers:git:specificities_git_abinit [2021/10/05 07:00] – [How to set up a "hotfix" branch to be merged in trunk/release-x.y ?] Xavier Gonze | developers:git:specificities_git_abinit [2024/09/02 14:20] (current) – Maryam Azizi | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <WRAP important> | ||
+ | |||
====== git(lab) : ABINIT specificities ====== | ====== git(lab) : ABINIT specificities ====== | ||
Line 30: | Line 32: | ||
\\ | \\ | ||
After some modifications, | After some modifications, | ||
- | <color blue>git push </ | ||
- | [ or\\ | ||
<color blue>git push --tags | <color blue>git push --tags | ||
- | if tags have been introduced...]\\ | + | \\ |
In order for the modifications to be merged in the trunk, a merge request has to be issued, as described later.\\ | In order for the modifications to be merged in the trunk, a merge request has to be issued, as described later.\\ | ||
\\ | \\ | ||
Line 74: | Line 74: | ||
For a <color magenta> | For a <color magenta> | ||
- | As an example, suppose we were on ABINIT v9.0.0, and want to start preparing a release 9.0.1 (for release) and a new v9.1.0 (for development) | + | As an example, suppose we were on ABINIT v9.9.3, and want to start preparing a release 9.10.1 (for release) and a new v9.11.0 (for development) |
- | * a branch entitled <color magenta> | + | * a branch entitled <color magenta> |
- | * after this branching, the first commit in the <color magenta> | + | * after this branching, |
- | * for a <color magenta> | + | * for a <color magenta> |
- | * for a <color magenta> | + | * for a <color magenta> |
- | In complement to the start of a X.Y.Z version being tagged as " | + | In complement to the start of a X.Y.Z version |
- | the commit that ends some X.Y.Z version | + | the commit that ends some X.Y.Z version |
Line 117: | Line 117: | ||
Then, in order to synchronize, | Then, in order to synchronize, | ||
- | git fetch trunk | + | git fetch --tags |
then, if the develop branch is to be updated, supposing it is checked out, merge the trunk/ | then, if the develop branch is to be updated, supposing it is checked out, merge the trunk/ | ||
Line 123: | Line 123: | ||
git merge remotes/ | git merge remotes/ | ||
- | You can combine the last two commands in one as: | ||
- | |||
- | git pull trunk develop | ||
===== How to set up a " | ===== How to set up a " | ||
- | If you have a hotfix, a new branch has to be created. To fix the ideas, let's suppose you want to communicate a bug fix to ABINITv9.6, you have to issue : | + | If you have a hotfix, a new branch has to be created. To fix the ideas, let's suppose you want to communicate a bug fix to ABINITv9.8, you have to issue : |
- | git branch release-9.6 start-9.6.2 (this creates the branch release-9.6 from the start-9.6.1 tag) | + | git branch release-9.8 start-9.8.0 (this creates the branch release-9.8 from the start-9.8.0 tag) |
- | git checkout release-9.6 | + | git checkout release-9.8 |
- | git merge remotes/ | + | git merge remotes/ |
- | git push -u origin release-9.6 | + | git push -u origin release-9.8 --tags |
- | That's it ! You can now make modifications in your release-9.6, then issue a merge request to the trunk/ | + | That's it ! You can now make modifications in your release-9.8, then issue a merge request to the trunk/ |
===== Additional info: how to not mess with your branches ? ... show-branch ... ===== | ===== Additional info: how to not mess with your branches ? ... show-branch ... ===== |
developers/git/specificities_git_abinit.1633417252.txt.gz · Last modified: 2021/10/05 07:00 by Xavier Gonze