Is it possible to git commit parts of code? (Git add -p equivalent)

Hello everyone!

Does anyone know if it's possible to commit selected lines of code, rather than whole files?
This would be the 'git add -p' equivalent.

Thank you!

Comment actions Permalink

You may consider to use a real Git GUI client like smartGit which lets you
freely edit the Git index.

Comment actions Permalink

Thank you for your quick reply.
It's a shame. I was hoping to stop using Git-Extensions completely in favor of PHPStorm.
I discovered that I can run 'git add -p' in the Command Line Tool, which is good, but in some cases the code is too complicated and mesy to add snippets using the command line.
Having a big GUI helps me a lot in this cases.


Comment actions Permalink

Feel free to request this feature in the IDEA issue tracker.


Please sign in to leave a comment.