Questions tagged [git-tag]
git-tag is the Git command used to create, list, delete or verify a tag object signed with GPG. A tag is used to mark specific points in history as being important.
496
questions
0
votes
0
answers
22
views
Semantic Versioning on multiple services in the same Github repository using GH Actions
Our team uses a mono-repo, with several microservices, and some common packages between them.
I am tasked with adding CI/CD automation, and traditionally I rely in Git tags for the sem-ver and utilize ...
0
votes
0
answers
35
views
PyGithub - Way to get tags associated with a GutHub commit
I want to get a list of all the tags associated with a GitHub commit. I'm using the PyGithub library and calling repository.get_commits() which returns a list of commits. I now want access to each ...
0
votes
1
answer
50
views
Appropriate Method for making a bugfix to older version tags of a repo
The latest version of my project is tagged on github as 1.11.0. I need to fix a bug that affects versions 1.10.0 1.9.0 1.8.0 and 1.7.0 The master branch is tagged as 1.11.0. What's the best way to fix ...
2
votes
1
answer
131
views
Why can't I push tags in GitHub workflows anymore, and how do I fix it?
My team has a GitHub release workflow that automatically tags our prod branch on push. It has been working fine for the last year, with the most recent success being May 2, 2022. This workflow failed ...
2
votes
2
answers
107
views
GIT get first tag per file in current state
To compare individual files between many releases, I want to keep track of the first release where a file has changed, per file.
I want to log the first tag for a file in git in the current state, ...
0
votes
1
answer
47
views
How to use "git describe" with dev and main (with tags) branches
I'm trying to setup a repository as if it there will be collaboration in the future, but for now it's just me using it.
My intention is to use three branch tiers
main: An always working, release ...
0
votes
0
answers
21
views
Can GitLab wiki tags be protected?
Each GitLab project has an associated wiki which is its own Git repository. Can a tag in this associated wiki repository be protected?
0
votes
1
answer
168
views
How to trigger a workflow from another workflow using GitHub Actions?
I want to read version from a file and create tag as v11.0.5.1.aws using the workflow . Then I ...
1
vote
1
answer
78
views
List all annotated tags, with annotation, sorted by commit date
It seems easy to list all tags with annotations, with e.g.:
git tag -n99
or
git for-each-ref --format '%(refname:short) %(contents)' refs/tags
And it's also possible to use git log to list tags by ...
0
votes
0
answers
55
views
How to verify good signature of a git signed tag without using command "git verify-tag"
I made a git signed tag, using this command:
git tag -s <tag>
Is there another alternatives to check the signature of this tag without using the command:
git verify-tag <tag> or git tag -v ...
1
vote
1
answer
40
views
How can I display the version number in git for the hash value of a tag?
I am working on the PowerShell right now and would like to display the version and if possible the description of a tag from which I get the hash value. By version I mean something like 55.1.
How can ...
1
vote
1
answer
45
views
Can't change case of tag "folder" name git
I have the following tags:
release/1.0
release/2.0
release/2.2.5
Release/2.5.0
Release/3.0.0
I want to get the casing to match on release. So for example, release/2.5.0 instead of Release/2.5.0.
So ...
0
votes
1
answer
207
views
Azure Pipeline - Get associated git TAG?
On my pipeline, I can retrieve the build number using the variable RELEASE.ARTIFACTS.MyPipeline_BUILDID. But I was wondering, how can I get the TAG associated with the build.
It is visible within the ...
2
votes
1
answer
76
views
List all git tags with their annotations? [duplicate]
I know how to list all git tags. But - what if I want to list them and print each tag's annotation?
Can I do this with git itself, or do I need a shell loop with git show
0
votes
1
answer
100
views
Git failed to create a branch on a tag
I have below branches:
xxx@box:~/src$ git branch
jira_6500
* main
xxx@box:~/src$ git rev-parse main
bfd271932228f8ce33b68b82ffee5ee3b2386a17
xxx@box:~/src$ git rev-parse jira_6500
...
-1
votes
1
answer
52
views
Checking out a git tag actually does another
It seems odd to me this behavior, I have a git tag, lets say tag-a, when I checked it out by running the following:
git checkout tag-a
it checks out tag-b
user@server xxx ~/path/git-local-folder ((...
0
votes
0
answers
63
views
How do I create a git remote branch from a git tag?
I have a tag that I want to create a branch from on the server. I tried this and it didn't work:
C:\Repo> git push origin refs/tags/v1.85.0.0:refs/heads/10000-fix
Total 0 (delta 0), reused 0 (...
1
vote
1
answer
44
views
How to remain only specific count of lastest tags automatically in github?
As i metioned in title, is it possible that remaining specific count of lastest tags automatically in github? ex. 5
There are more than 500 tags in my github repository. it is annoying to find ...
3
votes
1
answer
5k
views
Gitlab CI/CD auto tagging release
I'm trying to have my gitlab pipeline to automatically tag the master branch but with no luck.
What I wanna do
Since the project is a composer package, what I wanna do is getting the version number ...
1
vote
1
answer
84
views
How to delete a Git remote tag named @
Accidentally I created and pushed a Git tag named @ onto GitHub.
git tag -a -s @
git push --tags
Now I want to get rid of this tag again. GitHub offers no UI to delete a Git tag. I succeeded to ...
1
vote
1
answer
69
views
How to achieve pagination in Git tag
Anyone Help Me out on
Limiting git tag to 100
Need to fetch first 100 tag on 1st fetch need to pass some key or token to get next batch like pagination is possible
Have found some command like
git ...
0
votes
0
answers
34
views
Tags from fork are shown in main repository
I am working on mod for FOSS game and the author of game that I forked asked me why tags from my fork appeared in his repo.
Why this happened?
my tags are one without v
0
votes
1
answer
124
views
What does $.changes[0].toHash represent in a Bitbucket webhook when the event is a tag added?
Our Bitbucker server is configured to invoke webhooks (received by Jenkins) on push events, which include branch updates, and tags added. The HTTP POST content included in this webhook is a JSON ...
0
votes
0
answers
22
views
Tag not visibile when added via the Github API
I am currently attempting to build a small program, that, using the Github API would make a small change to a file in a repository, add a tag to the commit that change belongs to, then points the HEAD ...
0
votes
2
answers
139
views
Git update tag without creating new branch?
I have a tag v1 set to an old commit. There is a bug with this version and I'd like to update it.
I ran get checkout v1. I have updated the code to fix this bug, then git-added and git-commited.
Now I ...
0
votes
2
answers
379
views
Standard Version changelog repeats changes in different releases
I'm using standard-version with conventional commits to manage releases of an app i'm working on, and I'm having trouble with the auto generation of the Changelog.
Basically what happens is that every ...
0
votes
1
answer
546
views
Jenkins pipeline parameters
So I have defined a Jenkins pipeline that only runs the build when I'm passing a git tag as a string. Is there a way to list all the tags from a specific branch in a dropdown in order to select the ...
1
vote
1
answer
1k
views
semantic-release: fatal: tag 'vX.Y.Z' already exists
Trying to set up semantic-release/gitlab, I'm getting this in my GitLab logs,
Error: Command failed with exit code 128: git tag v1.0.0 2c30602010d7d9f26cc0880b988ff9de6405daa5
fatal: tag 'v1.0.0' ...
0
votes
2
answers
334
views
git describe --match returns wrong tag name if commit has two tags
I'm trying to add an extra tag for the commit to be able later to select this commit by git describe with --match pattern;
When I use --match to catch usual commits with one tag everything works fine.
...
0
votes
0
answers
47
views
Versioning of individual directories in Git
We have a project that compiles into several binaries. All binaries are part of the same product, but we have a system wide requirement that each binary shall identify itself with an own version ...
0
votes
1
answer
40
views
Using git tags or commits in container images in Azure pipeline
My question is about using git tags for our container images into Azure pipelines. Is there any way in Azure pipeline to make this in an automated way. If this is not the case, what can be a good ...
1
vote
2
answers
113
views
How do `ls-remote --refs` vs. cloning then `describe --tags` relate?
Listing the most recent tag of a remote repository produces a different answer from cloning that repository and then describing its tags. E.g.
$ git ls-remote --refs git://git.kernel.org/pub/scm/git/...
-2
votes
1
answer
99
views
Delete tags from feature branch
We are using Bitbucket for maintaining our code.
We have policy to not to push tags.
I have created a feature branch named myFeature and fetched on local.
Made some changes in files committed and ...
2
votes
4
answers
376
views
How i can filter git log on multiple tags
After I commit to master I run several CI that tag the commit they finished successfully. Say I have two CI - unit tests and integration tests that both create tags on the commit. Say unittest-signoff/...
1
vote
1
answer
653
views
When and why exactly does git describe not show the latest tag?
I have three branches: dev, staging and master. When I do git describe the result is v0.1 no matter which branch is checked out.
Following I will describe a workflow of making changed to dev adding a ...
1
vote
1
answer
566
views
Applying semver on mono-repo node js projects
I have used npx semantic-release for tagging projects in GitHub. I am currently working on a project that uses a mono-repo layout, something like:
mono-repo
api
web
mobile
I'd like to generate tags/...
0
votes
2
answers
71
views
Create an annotated git-tag with a particular tagger-name, tagged-date
How to create an annotated git-tag with a particular tagger-name, tagged-date?
The docs how to make it right have no such info.
From another stackoverflow question:
git config --global user.name "...
0
votes
1
answer
855
views
AWS Codebuild not starting when pushing commit and tag
I followed this tutorial https://ruddra.com/aws-codebuild-use-git-tags/ to make my codebuild in aws only trigger when tag is pushed to my bitbucket project, and it works if I'm ONLY pusing tags.
It ...
3
votes
4
answers
373
views
How to categorize git commits?
We have two separate projects on two different domains. Let's assume A project (the main) and B project. Sometimes we need to use some specific feature that we have already launched on the A project ...
0
votes
1
answer
94
views
some tags are not visible in git log but visible in git tag
We newly created a long term support branch from our develop branch last sprint, say it is called v2021.1.LTS, after I checkout v2021.1.LTS branch, I did a git log and from the results, I noticed 6 ...
0
votes
1
answer
85
views
GIT push tag second remote
Is it possible to have a local repository with two remotes while remoteA is used to develop while on remoteB I only want to have the relese tags but without the history. Say, for the third tags I have ...
3
votes
1
answer
114
views
Detecting all tags that are out of sync between local and remote
Is there an easy way to determine which tags I have in my local repo that are out of sync with the remote? By out of sync I mean that the exact same tag name points to a different commit on my local ...
1
vote
1
answer
55
views
Github app to update multiple repositories
I want to update multiple repositories with files based on a template repository. Is there any app that lets me do it on git?
1
vote
1
answer
63
views
Git flow release tag
I started using git flow to manage code for a medium sized project at work, I used the default for branches names and tag. I would like to know if it is possible to change the tag prefix, I have ...
0
votes
1
answer
190
views
Why is my tag pointing to a different commit locally and remotely?
I tagged a commit and git pushed it to origin. Then my colleague moved the tag to a commit he made and pushed. I pulled origin, but when I git log I still see the tag pointing to my commit. When I go ...
4
votes
1
answer
3k
views
How do I push a Git tag in Visual Studio Code?
Does anyone know how to push a created tag to the remote repository using Visual Studio Code?
3
votes
3
answers
933
views
git ls-remote --tags: how to get date information?
I am using git ls-remote --tags <url> to get the tags from a repository. However, it doesn't provide any date information. So I wonder if there is any way to get tags with date information ...
1
vote
3
answers
265
views
How can I get my GIT tags in the order that they were created?
I am facing an issue where I am using git (version 2.27.0.windows.1) and want to sort so that I am able to use the most recent one. Right now got the following list of tags:
abc_a_r0.1.1
abc_b_r0.1....
1
vote
1
answer
412
views
How to access github tag message in github actions
I want to capture the github tag message in Github Actions.
If user pushes tag with some message e.g.
git tag -a 1.0.0 -m "Test Message"
than, I would like to capture that message("...
0
votes
1
answer
25
views
Remove codebase between two git tags
I have a situation, where
I have a tag v.0
written some new code and push into master.
created a tag v.1.
written some new code and push into master.
created a new tag v.2
Now if I want to remove ...