Failed to click git commit, "No changes detected"

When I try to execute my project in the PHPStorm Git plugin, it will commit as shown below. But when I am on this screen and I press "Push", it will say "No change" instead of pressing. Am I missing a step?

enter image description here

+4
source share
2 answers

When using git in bash, when we want to click on the remote after the first commit, we should use:

git push -u origin master 

Using this command, set a new upstream branch for the local branch and click.

So, I think, although I have not used this gui tool before, it needs to follow this rule.

And Push current branch to alternative branch seems to do just that. I also think that this could change the upstream branch for the local branch in the future.

+4
source

You must first add it to version control. If you have already done this, try updating the folder - sometimes the status in the files does not change, and it looks like the change was not made when it really was.

0
source

All Articles