Making a tag in NorESM #611
gold2718
started this conversation in
Tips and Procedures
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This item contains (possibly evolving) instructions on how to make a new tag for NorESM or one of its external component models or utility externals.
The goal is to create an annotated (documented) tag that points to the desired commit. An outline of the procedure is:
git fetch --tags <remote>
where<remote>
is the name of your NorESM remote (rungit remote -v
if you are not sure).git log --max-count=1 <remote>/<branch>
where<remote>
is the name of your NorESM remote and<branch>
is the name of the branch you just merged to). You will use this text as your tag commit message.<tag>
below). Hopefully, this is the first part of the PR title.-a
option to thegit tag
command line.git tag -a <tag> <remote>/<branch>
This will bring up your git editor where you can paste in and edit the commit message. The standard commit message format is a short, descriptive first line, a blank line, then the rest of the commit message. If copying text from the git log, you can omit the merge message (
Merge pull request #xxx from <fork>/<branch>
).git describe <remote>/<branch>
.<tag>
).git tag --delete <tag>
) and repeat steps beginning at 2 correcting any mistakes.git push <remote> <tag>
).Beta Was this translation helpful? Give feedback.
All reactions