PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, January 6, 2022

[FIXED] Git can't create tag in Azure DevOps

 January 06, 2022     azure, composer-php, git     No comments   

Issue

I've a Azure Devops pipeline that build commit version and tag in my application.

I use, composer-version minor|major|patch to create application version , that write version in composer.json

Also, i use git push -u origin HEAD:master --tags to commit the version of my application. This command can push the file that have the version, but can't create new tag.

Can someone have an idea about this ?


Solution

As per the official git doc, git push --tags command only pushes all refs under refs/tags, in addition to refspecs explicitly listed on the command line.

For creating a new tag, you'd have to use:

git tag <tagname>

or for creating an annotated tag:

git tag <tagname> -a

You can then push the tag after you create it. Check this SO post for other detailed discussions on tags in GitHub.



Answered By - Bhargavi Annadevara
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing