How to add, commit and push into git programatically
Answered
Hi team,
As part of my plugin development, I want to create a plugin where i will select the file content and push to git where the user need to fill a form containing repo url, branch name, commit message. Can we fulfil this scenario ? If yess pls help me how can i achieve this
Thanks.
Please sign in to leave a comment.
You can find the git4idea plugin sources in the intellij-community repository: https://github.com/JetBrains/intellij-community/tree/master/plugins/git4idea
It contains various util methods that will let you work easily with the git.
Hi Jakub
Yaa I have seen the package before I felt it has lots of stuff. If that is the only source to read and understand, I will go through it. If you had any small example or any documentation. So that I can achieve the above scenario quite easily.
Working with GIT is not a part of the IntelliJ Platform SDK - such feature is covered by the above plugin.
Haha Yaa thanks for the quick response. I will try to complete. If any doubt I will raise a question