Committing to git

已回答

I configured PHPStorm with information about my remote repository and I'm able to commit just fine.  I use cmd-k to open up the commit pane, stage the files I need to, then click "Commit And Push...".  At this point, a confirmation dialog opens (I know I can set it so that it doesn't) but instead of just listing those files that are part of the current commit it lists all files that I've committed to a particular branch up to that point.  If I've made a lot of commits to the branch then the list can become quite long and the current files get lost.  Up until this latest release (or was it the one just before?) the dialog would show only those files included in the current commit but now it shows all.  Is there any way I can turn that off?  To make it so that it does show the dialog but list only the files that I'm committing right now?  I've looked around for a setting that might govern this behavior but wasn't able to find anything.

I'm running PHPStorm 2021.1.4

thnx,
Christoph

0

Shouldn't this be in the PHPStorm area?

0

Robert G Paris, tbh, I'm surprised it's not.  I clicked "New Post" on this page and it was posted here.  The topic was set to "PHPStorm" so I just assumed it would post to the appropriate forum.  I didn't pay attention before but yeah, it seems like it might be in the wrong place...?

0

Hello Christoph
Actually, push dialog shows all unpushed commits and once you open it - focus is on the top record - your branch and remote, therefore you can see the list of files that are in all unpushed commits. If you click on a latest commit then list of files will be updated and you will see content of that latest commit. Such behavior was in previous versions as well

0

Ruslan Kuleshov, I commit and push every time.  My process is as follows:

* Open the commit pane
* Click the + next to the file to stage
* Enter my commit message
* Click the "Commit and Push..." button

When I perform that last step the dialog opens and it is there that it shows the list of all the files that I've committed (and pushed to the remote repository) in my branch.  Just to double-check to see if perhaps the IDE isn't doing something correctly w/r/t pushing (despite the fact that I can see the commits in GitLab for my remote), running ``git push`` from the command line just returns "Everything is up-to-date".

So if the dialog is supposed to list only those files that have not been pushed then I'm not sure why they are showing up.

0

Hello Christoph

>When I perform that last step the dialog opens and it is there that it shows the list of all the files that I've committed (and pushed to the remote repository) in my branch.

There should be a list of commits that have not been pushed to a remote repository yet.

>running ``git push`` from the command line just returns "Everything is up-to-date".

It means that commit has been pushed. IDE relies on command-line git and if all commits were pushed then once you open "Push" dialog it will be empty

Would it be possible to submit a support request and please attach a video/screencast of an issue?

0

Ruslan Kuleshov, I submitted the request as suggested.  Hopefully something comes out of it.  Thank you for your help!

0

请先登录再写评论。