Is there any way to change a file from a tag?

Asked

Viewed 331 times

3

I have a small problem in my repository: A tag file 1.0.0 and 1.1.0 need to be changed.

On github I realized that there is no such option as editing when you select a tag.

But is there any way to bypass this, from the command line, to change a tag file in git?

2 answers

5


I agree with what the answer @Gypsy and to complement, any problem that exists even in the repository and that is corrected later should be released in a new update so that the flow of a software update is correctly followed, imagine that someone has already downloaded the version 1.0.0 or 1.1.0, then probably if you could edit some of it this would cause inconsistency for those already using the specific version.

Think that each problem fix is already an update, so even minor problems should also be part of the x.x.x (x.x.x.x), even if the problem is in a repository file.

According to the http://semver.org/lang/pt-BR/, given a version number MAJOR.MINOR.PATCH (x.x.x), increment the:

  • Larger version (MAJOR): when making incompatible changes to the API.
  • Minor version (MINOR): when adding functionality while maintaining compatibility.
  • Fix version (PATCH): when fix faults maintaining compatibility.

In case your problem is PATCH, then if the problem was in 1.0.0 and in 1.1.0 you should create a new tag 1.1.1.

  • 2

    This explanation in the end made me correct the versioning of a repository of mine. I was using so : 1.4, 1.6, 1.7

4

No. If it had, the function would lose its meaning.

Tags serve to mark a point in the history of your code, as for example a release of a stable version, and that’s why even if no file can be modified.

This is not unique to Git. Other release controls like CVS and SVN have the same functionality with the same features.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.