Questions tagged [git-describe]
44 questions
0
votes
0 answers
Git Tag not available on some branches
While merging my stage branch to master branch for production release, I created and pushed a tag on stage branch using the following commands:
git tag base-2.0.0
git push origin --tags
Now, when I check the distance of the current commit from this…

Sandeep Parashar
- 197
- 1
- 14
0
votes
1 answer
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 describe. I looked at this question, but I get the…

mfaani
- 33,269
- 19
- 164
- 293
0
votes
1 answer
How to format "git describe" output in simple file with .bat script?
I want to get output in simple txt file inside git repo folder:
About:
date = (2022_06_04)
version = (1d34a1b1)
And I stuck with formatting data in ( ) brackets.
Here is my attempt:
@echo off
set dt=%DATE:~6,4%_%DATE:~3,2%_%DATE:~0,2%%
set dt=%dt:…

M_V
- 3
- 3
0
votes
1 answer
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 branch where every commit is a tagged merge commit…

oblivioncth
- 315
- 3
- 11
0
votes
2 answers
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.
But when I try to --match commit with two tags…

Andrew Tvorch
- 161
- 1
- 4
0
votes
2 answers
Git Describe NPM not providing Tag information
I am trying Git-Describe npm package to retrieve hash information and tag to append to my application later.
I have following the instruction that are provided in the Git describe npm page. The script worked well but the tag information is retrieved…

Raja
- 3,477
- 12
- 47
- 89
0
votes
1 answer
git describe not suitable for git flow process?
I plan to migrate several services to a git repository. For releasing I want to go with git flow process.
A Jenkins build will build artifacts from every existing branch. To track the version every build tags the version at the corresponding node,…

ÐerÆndi
- 139
- 10
0
votes
1 answer
git describe in html format (inside gitlab-ci)
Using Gitlab API, during the CI, I create a release with a curl command:
# create a release
- >-
curl --request POST
-H "PRIVATE-TOKEN: ${GITLABAPI_TOKEN}"
-H 'Content-Type: application/json'
--data…

Tyvain
- 2,640
- 6
- 36
- 70
0
votes
1 answer
git describe a tag that match a glob pattern
I have few tags with the following patterns in chronological order:
0.0.3.156-alpha+2
0.0.3.154
0.0.3.153
build-.139
build-.140
build-.142
build-0.0.1.28
build-0.0.1.29
I need to get the latest tag that match the pattern number.number.number.number…

hydradon
- 1,316
- 1
- 21
- 52
0
votes
1 answer
How to show git-describe in React Native app?
I generally like to automatically bake-in the results of a git describe --always --dirty in any website, app, etc I am developing so that I can easily trace behaviors. Right now, I can't figure out a way to get this in a React Native app.
I am…

TinyTheBrontosaurus
- 4,010
- 6
- 21
- 34
0
votes
1 answer
Git/Bitbucket pipelines - What causes tags to appear different depending on what branch I push to?
I'm trying to understand why I'm getting two different results relative to git tags when running my bitbucket-pipelines.yml file. Currently my project has tags running from 1.0.0 - 1.0.25. The .yml file looks like this...
pipelines:
branches:
…

aberkow
- 330
- 1
- 10
0
votes
1 answer
Is there a table somewhere underlining the difference between these git commands?
It seems there is some overlap in those git sub-commands:
describe
rev-parse
name-rev
symbolic-ref
show-ref
Is there a nice table somewhere which underlines what some of them can not do? It should cover:
failure…

Robert Siemer
- 32,405
- 11
- 84
- 94
0
votes
1 answer
How to get the log with the output of git describe
I want to use the output of git describe in my program so if a problem occurs, I can easily track down in what revision this happened.
The output is similar to: v2.12-20-g22290d9
I know I can checkout it easily, but how can I track the log with git…

dan-lee
- 14,365
- 5
- 52
- 77
-3
votes
2 answers
How is expanding %(describe) during a git archive a denial-of-service (DOS) risk?
The gitattributes man page says:
Creating an archive
export-subst
If the attribute export-subst is set for a file then Git will expand several placeholders when adding this file to an archive. [...] The placeholders are the same as those for the…

figl
- 55
- 1
- 5