Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git branch tag 同名 #213

Open
teazean opened this issue Jul 29, 2019 · 2 comments
Open

git branch tag 同名 #213

teazean opened this issue Jul 29, 2019 · 2 comments

Comments

@teazean
Copy link
Owner

teazean commented Jul 29, 2019

看 Issue:
https://softwareengineering.stackexchange.com/questions/230438/in-git-is-it-a-bad-idea-to-create-a-tag-with-the-same-name-as-a-deleted-branch

@teazean
Copy link
Owner Author

teazean commented Jul 29, 2019

That is, if you're happy with the fact that:
git checkout will check out refs/heads/ over refs/tags/ (see git-checkout)
other commands will use refs/tags/ over refs/heads/ (see gitrevisions)

git checkout 优先使用 branch ;其他命令优先使用 tag

@teazean
Copy link
Owner Author

teazean commented Jul 29, 2019

git checkout refs/heads/v1.5.2
git checkout refs/tags/v1.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant