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.
549
questions
0
votes
1
answer
25
views
Push tags to Bitbucket repository from Jenkins pipeline using withVault
I've a requirement to fetch the credentials from Vault in a keeper namespace and use withVault directive in Jenkins pipeline instead of withCredentials. I'm facing issues using withVault.
Below works ...
0
votes
1
answer
36
views
git describe not showing most recent tag as advertised
I am on git version 2.40.1
I'm simply looking the get the most recent tag number from a given branch. Not the overall latest tag number from the whole repo. Not a random old tag number.
For example,
...
1
vote
1
answer
68
views
How to get a tag from a branch in my repository using github actions?
I need to automatically capture the latest tag whenever I push changes to my private repository on the 'develop' branch and store it in a variable. How can I achieve this?
I attempted to use these ...
0
votes
0
answers
22
views
Deriving branch name in a Git CI/CD tag pipeline
I need to take certain actions during a Git CI/CD pipeline under the following conditions:
A new tag has been created
The branch name is 'develop'
Tags are associated with commits, not branches, so ...
1
vote
2
answers
262
views
Why is a FetchContent using a different TAG than the one I specified? How can I resolve this?
I am trying to use a certain library with FetchContent:
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG ...
0
votes
1
answer
16
views
What files are left out of the tagged github zip?
I had some issues with a deploy and has to revert back to a tagged version of the code.
When reviewing the changes between the the tagged code and the git code it had some changes like changelog.
Is ...
1
vote
0
answers
46
views
How to add labels to tag release in GitHub?
I have released a tag. I can see a label called "latest" on the release.
Can i add more labels on the same release?
if so how to do it?
I don't find any option to add labels to a release.
...
2
votes
0
answers
56
views
Delete all tags matching a pattern (local and remote)
I have accumulated a lot of junk tags in my repositories. I want to delete all tags matching a given pattern, but not ALL tags, just those that match.
What is the best way to do this?
I'm on Windows (...
0
votes
1
answer
47
views
Tag for entire AOSP repository for a local git server setup
I setup a AOSP code for my local git server with the following steps,
Mirror code on server :
mkdir AOSP_MIRROR
cd AOSP_MIRROR
repo init -u https://android.googlesource.com/platform/manifest -b ...
0
votes
2
answers
134
views
How to reapply Git tags after rewriting history using rebase?
I have a project where I'd started working on my old laptop and then continued on my new one. On my old laptop I had properly configured Git with user.name and user.email, but when I switched to my ...
1
vote
1
answer
38
views
What to do with an unwanted tag in the tag list?
When I run git tag the first line is value 2 - what is it? If it was a wrong tag record (there should not be that tag) how to remove it?
PS C:\Users\rozerro\StudioProjects\testing_project> git tag
...
0
votes
0
answers
24
views
Github migration duplicates commit, one for code and one for tags, must reassociate tags with proper commit
We moved a repository from one Github to another and for some reason the commits were duplicated, one for the code and one for the tags.
In the source instance i have commit xxxxxx with both the code ...
0
votes
1
answer
121
views
commit id associated with git tag using Azure DevOps API
I have a git tag as input. I want commit id associated with that git tag as output.
-1
votes
1
answer
145
views
How can I run a pipeline automatically, taking a value from the context, or manually with a default value?
I have a CI that runs when a tag is created, but I would like to be able to run it manually as well. Unfortunately, the CI uses the tag name to set the name of the artifact.
I tried this:
stages:
- ...
0
votes
2
answers
88
views
Why is version number 0.10.0 considered as older than 0.9.0 in setuptools_scm?
I have a Python package that is going through frequent changes and it brought us to version 0.9.3 currently. My team is not confident to bump it to 1.0.0 yet.
The team agreed to version number 0.10.0 ...
0
votes
0
answers
21
views
Not able to print git tag ref using AzurePowerShell
I have a YAML file in which I checkout a repository using git tag as follows:
resources:
repositories:
- repository: repo-name
type: git
name: name
ref: refs/tags/2.0.2304.190
...
0
votes
0
answers
37
views
git tag associated with the git commit
I have the following PowerShell script to find out the latest commit in source/target branches:
$uriBranchStatus = "https://dev.azure.com/$organization/$teamProject/_apis/git/repositories/$...
0
votes
0
answers
66
views
Azure DevOps api to return git tag of the latest commit of a branch in a repository?
The following api returns all git tags of a repository:
https://dev.azure.com/{organization}/_apis/git/repositories/{repositoryId}/refs?filter=tags/&api-version=5.0-preview.1
Is there an api to ...
0
votes
0
answers
43
views
How to fetch the git tag given commit Id using Azure DevOps REST Api?
Is it possible to fetch the git tag given commit Id using Azure DevOps REST Api?
0
votes
0
answers
74
views
Git tag of latest commit in a branch in Azure DevOps YAML
I have a YAML as follows:
name:
resources:
repositories:
- repository:
type: git
name:
ref: refs/tags/2.0.2304.54
trigger:
- develop
- main
pool:
vmImage:
variables:
...
0
votes
2
answers
186
views
git-filter-repo did not filter tags
I have multiple git repositories on a company gitlab and wanted to clean them up using git-gilter-repo, following the steps from documentation:
https://htmlpreview.github.io/?https://github.com/newren/...
0
votes
1
answer
194
views
Github Tags not updating [closed]
I am creating a CI/CD Pipeline for my project. I am building the Images using GitHub Actions and storing them in the AWS ECR.
The whole pipeline works fine but there is a problem with updating the ...
0
votes
1
answer
133
views
`rules` or `except` which is best practice to use in GitLab pipeline
Need an advice for very big enterprise I am reviewing their CI pipeline and there some jobs which has got except and only, and I am wondering is rules better practice or not.
One of the job looks like ...
1
vote
1
answer
757
views
github actions workflow workflow_dispatch running a workflow manually - most of the Tags are disabled
I am using github actions workflow for code deployment. One of the flow is manual using workflow_dispatch. I am able to select main or any feature branch but when i select tags - most of them are ...
2
votes
1
answer
68
views
Add tags / label to git commits
I have a branching strategy where I have a branch that represent each of my org.
Now when working on a branch , we can have commits for a release or a hotfix correction etc...
I want to be able to tag/...
1
vote
2
answers
168
views
How to get individual elements of $ git describe?
We are working on a versioning system based on git tags.
While git describe is great, we would prefer commands that output the three elements of git describe seperately (latest tag, commits since tag, ...
0
votes
0
answers
116
views
How many git tags can be created?
I'm creating a git tags (https://learn.microsoft.com/en-us/azure/devops/repos/git/git-tags?view=azure-devops&tabs=browser) per build. How many git tags can be created? Is there any limit?
0
votes
0
answers
260
views
Bumping inner libraries version in nx monorepo
We are currently moving some of our inner libraries into a nx monorepo.
Those libraries are publishable.
What can we use to bump our libraries versions?
0
votes
0
answers
20
views
How to get the commit IDs of the submodule and their tags? (GITLAB)
I'm using the following command to get the tags in each of the submodules listed from newest to oldest:
git submodule foreach git tag --sort=-taggerdate -l
I'm getting the output below. I grabbed 3 ...
0
votes
0
answers
49
views
Gitlab: How to get the commit IDs of a submodule and all of its tags?
I'm using the following command to get the tags in each of the submodules:
git submodule foreach git tag --sort=-taggerdate -l
What I'm trying to do now is to also get the commit IDs, of both the ...
0
votes
2
answers
166
views
How to get the commit IDs from all the tags in a submodule?
I'm using the following command to get the tags in each of the submodules:
git submodule foreach git tag --sort=-taggerdate -l
But I'm not sure how to also get the commit IDs for each tag listed.
...
0
votes
0
answers
26
views
Gitlab: How to get only the matching tag from a submodule's commit ID (Git)
I want to go into a specific submodule's commit ID and get only the tags that have a matching commit ID:
To illustrate the problem, below I put an example:
We're gonna use this specific submodule as ...
2
votes
1
answer
698
views
GitHub Actions Not Triggered on Pushing Tags
I'm having a project for which I would like to do tag based releases and for this purpose, I have defined the following yml file:
name: publish open-electrons-templates
on:
push:
# Sequence of ...
1
vote
1
answer
267
views
Git config remote.origin.tagOpt --no-tags has no apparent effect
Every time I try to update a particular repository, it fails because the maintainer regularly changes the nightly tag:
$ git fetch
From https://github.com/kyazdani42/nvim-tree.lua
! [rejected] ...
1
vote
2
answers
130
views
Understanding git tag in different namespaces
I want to create tags in different namespaces.
Read up on: https://git-scm.com/docs/gitnamespaces but I am not sure, I understand it correctly.
So, lets say
I create a tag and push it upstream using:
...
0
votes
1
answer
183
views
I can't delete this Git detached head
I have a git repo with two branches: kristof (my name) and master.
I messed something up. When running gitk, I can see the following:
As you can see, there is a commit (already pushed remotely) at ...
1
vote
1
answer
434
views
How to tag a CI/CD build on success?
I want to (git) tag a state of the branch with successfully finishing a CI/CD pipleine
E.g.
compile
test
package
deploy
if all this stages worked well, I would like to have a tag
/branchName/...
0
votes
0
answers
366
views
Github Actions - How to Parse Tag Annotations
I am trying to move one Jenkins pipeline to Github Actions. In this pipeline, we deploy from feature branches using a CLI, for example:
deploy --env develop --region us-west-2 --pkg service1 service2 ...
0
votes
1
answer
409
views
want to create single string parameter value extracted from git parameter tag
I have tag versions but I want to pick the latest tag and then let the people have that choice only because I want them to use latest tagged version when running the pipeline.
from there I tried two ...
1
vote
1
answer
274
views
Serve static html pages with Gitlab Pages for each tagged version of a project
I have a code project hosted on a custom gitlab instance. This project is part of a subgroup. We'd like to host static html content, generated by doxygen and similar tools, using Gitlab Pages. Trivial ...
0
votes
1
answer
108
views
Why is git describe returning a super old tag?
I’m fairly new to using git describe.
Shouldn’t git describe, return the last tag that you get from git tag? I currently get tag-release-1.0.1-2107-g4a123293e (from 4yrs ago) returned when I do git ...
1
vote
0
answers
119
views
How to automatically triggers Jenkins job when there is a Git tag push to Bitbucket server
I am not able to figure out how to automatically triggers Jenkins job when there is a Git tag push to Bitbucket server using multibranch pipeline. I can manually trigger it but automatic trigger isn't ...
1
vote
2
answers
408
views
Git SHA-1 hash building: commit vs. tag?
I've successfully been able to figure out how to piece together a Git commit hash from the data.
I can construct an algorithm that makes a Call to SHA-1 using each "piece" of information (...
0
votes
2
answers
315
views
Which branch is behind the tag?
I'm in a cloned source-tree created by using a tag. How do I determine, which branch is it, that the tagging was applied to -- so that I can pull in newer commits made into that branch?
The git branch ...
0
votes
0
answers
841
views
Git tagging: on the merge-commit or the commit?
I have a situation where a feature branch (call it feature-A) wasn't merged on master for a very long time, so long in fact that another feature branch (feature-B) was merged during that time.
...
0
votes
0
answers
118
views
How to obtain audit logs for tags in AzureDevops
I am trying to get some details on a deleted tag in a repository under AzureDevops.
It seems that tags are not audited (refer this) and once deleted they do not appear in tag either. Is there some ...
2
votes
1
answer
1k
views
Azure Devops API: get latest action on the repository
I'm using Azure Devops Rest API and I'm trying to figure out the best way of getting the latest action timestamp(date) on the specific repository.
Now I'm trying to fetch commits and tags and check ...
1
vote
1
answer
72
views
Too many tags so `git tag` will stop with a colon for further input [duplicate]
I have a repo with too many tags so when I run git tag it will stop with a colon for further input. My purpose is to write a script (shell or python) to delete all the tags less than a specific ...
-1
votes
1
answer
551
views
Git checkout branch from tag: got different code from that in github [closed]
Git checkout branch from tag: got different code from that in github.
git clone https://github.com/eclipse-ee4j/mojarra
git checkout -b mybranch 2.3.18.RELEASE
pom.xml:
<groupId>org.glassfish&...
2
votes
1
answer
319
views
Can I block a specific git tag from being pushed to remote in Azure Repos Git?
My team is using Azure DevOps as our Git server, and is having an issue where a specific unwanted tag keeps being pushed to the remote. We've set up client-side git hooks, and asked everyone on the ...