21

I use PHPStorm IDE in my everyday development. It's pretty well integrated with many CVS. But when I start using git I've found that plenty of git functions are not supported. Or I just missed something. That's why I ask.

Is there any way to push tags (git push --tags) with PHPStorm?

When I run

CVS | Git | Tag Files

tag is created and I even can see it in PHPStorm git log. But it exists only locally. Nothing is pushed to remote. If I try to make Push after tag creation IDE says "Nothing to push".

4
  • 4
    It is not currently supported by PhpStorm or any other IDE on IDEA platform (as far as I understand it was in previous version but then it was temporarily (?) removed for whatever reason): youtrack.jetbrains.com/issue/IDEA-77483
    – LazyOne
    Commented Aug 22, 2012 at 12:44
  • @LazyOne It's old question, so your answer is not up to date. :) I just did it with PhpStorm 2021.3.2. Look at flu answer. Commented Mar 3, 2022 at 9:46
  • @PatrykGodowski That's an amazing conclusion for my 10 years old comment...
    – LazyOne
    Commented Mar 3, 2022 at 9:56
  • @LazyOne - it's still alive. :) Commented Mar 4, 2022 at 10:02

3 Answers 3

21

It's in the "Push Commits" dialog

VCS | Git | Push → ☑ Push Tags

enter image description here

See: Jetbrains Ticket IDEA-77483 - GIT "Push tags" missing from push dialog

4

I don't know PHPStorm, but a normal git push <remote> <branch> at the command line won't pickup tags. You need to issue either:

git push <remote> --tags ;# push all tags
git push <remote> <tag> ;# push one tag

Again, I can't speak to PHPStorm, but this operation is quite easy from the command line.

1
  • Well I'd prefer making it without switching to terminal, but thank you anyway. Commented Aug 22, 2012 at 10:53
2

[old answer, check most voted answer above]

You cannot do it. But you can join a request in here http://youtrack.jetbrains.com/issue/IDEA-77483 The only possibility is command line and git push –tags

1
  • Joined! Thanks for notification! Commented Feb 25, 2014 at 15:58

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.