0

When tagging in Git, should I also add the project name? For instance, should I use

git tag project-v1.0.0

or just

git tag v1.0.0?

I ask because when someone clones my project, I want it to be cloned into a folder with the project name.

1
  • 2
    Tags are not folders. Tags do not modify the directory where your Git clones into. Commented Nov 14, 2019 at 16:07

2 Answers 2

1

Keep tag simple, 1.0.0 is enough! The folder of clone doesn't depend from tags name.

Sign up to request clarification or add additional context in comments.

Comments

0

As far as i know this is not possible at git basis. If project name is also name of top project directory (what is common aproach), then You could try cut command:

git rev-parse --show-toplevel

Which gives you full path of working directory. Then just make a git hook, with sth similar:

$(git rev-parse --show-toplevel)-v1.1.0

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.