简体   繁体   English

如何在PhpStorm中使用“git add --patch”

[英]How can I use “git add --patch” in PhpStorm

I am in the process of migrating our old environment from SVN + eclipse to Git + PhpStorm. 我正在将我们的旧环境从SVN + eclipse迁移到Git + PhpStorm。 I read many tutorials about Git and just recently found the git add --patch command. 我阅读了很多关于Git的教程,最近才找到了git add --patch命令。 Is it possible to use it in PhpStorm through the GUI? 是否可以通过GUI在PhpStorm中使用它?

I already tried to do it manually using a terminal window inside of PhpStorm, but when I than use the VCS | Commit Changes 我已经尝试使用PhpStorm内部的终端窗口手动完成,但是当我使用VCS | Commit Changes VCS | Commit Changes window, it will just add the rest of the lines to the staging area and commit all hunks. VCS | Commit Changes窗口,它只会将其余行添加到暂存区域并提交所有项目。

AFAIK it is not available: http://youtrack.jetbrains.com/issue/IDEA-63201 AFAIK不可用:http: //youtrack.jetbrains.com/issue/IDEA-63201

Please follow that ticket (star/vote/comment) to get notified on progress. 请按照该票(星级/投票/评论)获取进度通知。

There is actually some progress, the feature you mentioned is now in the EAP release. 实际上有一些进展,你提到的功能现在在EAP版本中。

https://blog.jetbrains.com/idea/2018/02/intellij-idea-2018-1-eap-partial-git-commits-and-more https://blog.jetbrains.com/idea/2018/02/intellij-idea-2018-1-eap-partial-git-commits-and-more

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM