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!

3 comments

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

0

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.

Cheers!

0

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

0

Please sign in to leave a comment.