Branch/master tag revision increments using Git

前端 未结 3 1838
执笔经年
执笔经年 2020-12-18 03:37

I\'m trying to nail down a good system for release management, combined with the tagging practice of tagging with version numbers - for example, 1.0. Any changes after that

3条回答
  •  再見小時候
    2020-12-18 04:02

    In git a tag is an alias for a specific commit, not for a branch.

    Tags and branches are independent.

    So if you want to checkout a specific version to do a minor rev on it then you could do:

    git checkout -b new_branch_name commit_id
    

    Or,

    git checkout -b new_branch_name tag_name
    

    Both are simply equivalent ways of referring to a specific commit.

    Make your changes, commit them and tag the commit with the minor rev.

    You could then even delete the branch that you checked out.

提交回复
热议问题