how to get Git branch name, commit IDs from local branch? Permanently deleted user Created March 27, 2018 20:23
To get current branch name:
To get all commits in a local branch (query `git log <branch name>`)
Thanks for the reply.
I added the code to get branch name, and it compiled OK, but failed at testing:
Here is the code:
Here is part of build.gradle:
You need to modify your `plugin.xml` and add dependency on git4idea plugin.
See https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html
Thanks. It worked.