571 questions
0
votes
0
answers
66
views
Tag push doesn't trigger workflow if the workflow didn't exist at the tagged commit
Repository structure:
Commits
first-commit: add test file
second-commit: add workflow
.github/workflows/tag.yaml
name: tag_handler
on:
push:
tags:
- "*"
jobs:
hello:
...
2
votes
1
answer
91
views
How to show contents of annotated tag without the signature?
Currently, I'm using this command to show the contents of the annotated tag:
git tag --list --format='%(contents)' name-of-tag
Which worked fine until we started GPG signing the annotated tags. Now ...
0
votes
0
answers
72
views
Why does Jenkins pipeline not see git tags after checkout in a Docker/Windows agent?
I am using a Jenkins declarative pipeline with a Docker agent (Windows label).
In my pipeline, I want to get the current git tag for the commit being built, so I can use it for artifact naming.
My ...
4
votes
1
answer
246
views
Why can't I create a lightweight Git tag?
I cannot create a lightweight tag in Git, only annotated (as I understand).
I use the command:
git tag v15.0
This should create a lightweight tag without any metadata, but instead it asks me for a ...
0
votes
2
answers
103
views
Until what point does a 'release tag' store information of a branch?
Let's consider a Git repository with a main branch. I now create a release/vX.Y.Z branch from main, but instead of merging back I create a release tag onto it.
I know that now this exact commit is ...
0
votes
1
answer
54
views
GIT: Importing tags in a new branch
We have a master branch. I created a new branch off master called some_feature. When I created this new branch, the master latest tag was 3.2.0. Later, few releases were cut by other team members and ...
0
votes
0
answers
131
views
How do I recover lerna after a successful publish but is not detecting new tags
Long story short: Lerna is not detecting the latest git tags after a successful publish. Can I recover from this without re-publishing all the packages which included several major version bumps via ...
0
votes
1
answer
48
views
TFS 2017 Git API - Get Tag By Name
Is it possible to get annotated tag information via tag name in TFS 2017 API? There is an Annotated Tag section in the documentation, but it wants the object ID of the tag.
I have the Repository ID ...
0
votes
0
answers
56
views
Can tags be used securely in Github for deployment and OIDC?
I have several org repositories that deploy into cloud environments via AWS and OIDC. The typical release process is as follows:
Decide that main is in a state we want to deploy. main is configured ...
3
votes
1
answer
112
views
How to get the reflog for annotated tags?
I have Git configured to record reflogs for all refs:
$ git config core.logallrefupdates
always
And this works. Including recording the reflog for annotated tags. But
git reflog does not give any ...
1
vote
2
answers
135
views
Do Git tags have a timestamp indepedent of the commit?
When you tag a commit, I know that you'll have the committer/author timestamp of the commit as well as a ctime/mtime/atime timestamp on the object file, but is there a separate recorded timestamp of ...
1
vote
1
answer
100
views
what are proper steps for adding git tag to a commit in bash?
I need to start adding a tag to my commits... I use bash shell. what is the proper sequence
I did it like this:
git tag <verbiage>
git commit <verbiage>
Is this correct?
1
vote
0
answers
113
views
Tagging releases in a monorepo, in trunk
We have a monorepo and are using trunk based development (single trunk branch)
We have 2 environments dev and prods, and we want to tag the latest releases.
Should we tag each release env commit?
Like ...
0
votes
1
answer
83
views
Pushing Tags in Azure Devops Via Powershell Commands Doesn't Set Tagger Information
Hi I have a release that automatically tags the release commit in the source repo via some git commands in a powershell script. Its below:
cd $(Agent.ReleaseDirectory)\_repo_root
git checkout $(Build....
0
votes
1
answer
708
views
How to get a branch name in Azure DevOps when a tag is generated?
I want to get the branch name in a Azure pipeline. I can get it using:
- script: |
echo "Original Source Branch: $(Build.SourceBranch)"
BRANCH_NAME=${BUILD_SOURCEBRANCH#refs/heads/}
...
-2
votes
1
answer
176
views
How do I make commit hash consumable on top of latest tag for go get command?
I'm working with the framework package (github.com/username/fmk) and I'm facing an issue with version resolution using go get.
Current Release Process:
Feature Branches: Developers create isolated ...
0
votes
1
answer
740
views
How to create a tag after PR got merged but before merge commit? [duplicate]
I have a long running PR which was merged to main branch. However, I needed to create a tag for the main branch before the PR got merged for any future hot fixes!
Now that PR got merged (with merge ...
0
votes
1
answer
365
views
Bamboo appears to be not fetching tags from Bitbucket
We have a checkout task in our bamboo-specs YAML file thus:
- checkout:
force-clean-build: "false"
description: Checkout default repository
As part of our build processes, we want to ...
0
votes
0
answers
100
views
How to pull subrepo tag instead of branch?
I have a repository 'util' repository that I cloned as a subrepo into 'client' repo. How can I pull a tag version instead of a branch, in the client repo?
I dont want to be pulling version branches, ...
0
votes
1
answer
92
views
Similar git tags to trigger Github Actions
Currently I have 2 Github Action. One for production release, and the other one for staging release.
When I push a tag in production branch it triggers the CI/CD:
name: Deploy production
on:
push:
...
-2
votes
1
answer
918
views
To create a branch from a git tag is a good practice?
I have started working with a new dev team, and they have a practive that I can't find in git-book about branch management:
They use a single branch to centralize changes and close a tag for every ...
-1
votes
1
answer
141
views
Git tags moving from one remote branch to another
I somehow managed to import git tags from one remote repository to a different one. What I did wrong in the said action sequence and how to avoid importing git tags into different remote git repo in ...
0
votes
1
answer
71
views
Change contents of file in git history keeping tags
I have many git repos with DVC. DVC has file .dvc/config that refers to remote (cloud storage). I want to migrate from one remote to another so one of the steps is to edit git history of .dvc/config ...
1
vote
0
answers
189
views
Jenkins Pipeline Checkout to the latest release tag
I am working on establishing a Jenkins pipeline that compiles a React application and transfers the build directory to a remote server. The build process is based on the master branch, and ...
0
votes
1
answer
302
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 ...
1
vote
1
answer
765
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
2k
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 ...
1
vote
2
answers
3k
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
32
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 ...
4
votes
0
answers
393
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
1
answer
586
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
124
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 ...
2
votes
1
answer
2k
views
GIT returning fatal "[tag] already exists" error when Deleting then Recreating Tags
In GIT, I am trying to execute a series of GIT commands to delete an existing tag then recreate it. However, it is returning a "fatal: tag '2.0.1' already exists" error. Anyone have any ...
1
vote
3
answers
766
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
48
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
37
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
365
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
581
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
321
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
49
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/$...
1
vote
2
answers
717
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
491
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
608
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
3k
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 ...
3
votes
1
answer
594
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
770
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
638
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?
-1
votes
2
answers
258
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.
...
3
votes
2
answers
2k
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 ...
4
votes
1
answer
1k
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] ...