This is a silly problem, but I can't for the life of me figure out how to enable git annotations within PhpStorm. Normally you can just right click the line number gutter and select Annotate
which displays information about who committed that code, when it was committed, and links to the commit on github. However, when I right click, the Annotate
button is gray and not clickable.
I do have both git and github set up within my PhpStorm preferences:
There's probably another setting in there somewhere, but I've been looking and I can't find it.
Anybody know how to get those git annotations working?
The high-level function of git blame is the display of author metadata attached to specific committed lines in a file. This is used to examine specific points of a file's history and get context as to who the last author was that modified the line.
The module with the disabled "Annotate" option was in the "Unregistered Roots" section. To fix the problem, I selected the module and pressed the "+" icon in the lower toolbar to register the module root with Intellij VCS. The change is immediate and the "Annotate" options becomes available.
The git blame command is used to examine the contents of a file line by line and see when each line was last modified and who the author of the modifications was. If there was a bug in code,use it to identify who cased it,then you can blame him. Git blame is get blame(d).
Version Control Integration:
Remove Version Control Integration:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With