git clone a tag example

preview_player
Показать описание
Wondering how to git clone a tag? It's not hard. Just use the --branch option and instead of a branch name, supply the name of the tag.
But be careful. A tag is usually some previous spot in history. You're not checking out the latest commit, but something far in the past, which may very well lead to a detached head. There are worse things, believe it or not. But a detached head will limit your ability to make new commits. But if you're cool with that, enjoy this git clone a tag example
Рекомендации по теме
Комментарии
Автор

hi can you please help to clone a tag without without .git folder in it?

tarunorton