PhpStorm Git keeps saying: no changes detected

后端 未结 9 799
时光说笑
时光说笑 2021-02-05 12:45

I tried to work with PhpStorm and Git. I have previous experience using NetBeans and I didn\'t have any problem with G

相关标签:
9条回答
  • 2021-02-05 13:18

    I solved this problem. gitignore file was cause of problem. hope this help!

    0 讨论(0)
  • 2021-02-05 13:19

    Well, i know this post is to old but... i found a solution clicking on VCS | Refresh File Status, hope this help someone :)

    0 讨论(0)
  • 2021-02-05 13:19

    See this declined bug in PHPStorm

    You need to tell git to not ignore case and it will fix this behavior

    git config --global core.ignorecase false
    
    0 讨论(0)
  • 2021-02-05 13:19

    Before you can commit a new file to Git, you need to add the file. From the command-line, this is done with git add <file>. To add a file to Git in PhpStorm, go to the Project tool window, select the file to be added, and choose "Git | Add" from the context menu. Also, before you can push changes, you need to commit them. In PhpStorm, this is done like this:

    1. In the menu: "View | Tool Windows | Changes" (or Alt-9).
    2. Select whichever files you want to commit.
    3. In the main menu: "VCS | Git | Commit file" (or Ctrl-K).
    4. Add a comment.
    5. In the Git section, set the author using the drop-down list.
    6. Click "Commit".
    0 讨论(0)
  • 2021-02-05 13:20

    If you're using pycharm. There's a big chance that you opened the file, you worked on it, but you opened it in a different project. Therefore no changes will be detected.

    You need to open the file in its corresponding project in order to be detected.

    I do this. All. The. Time.

    0 讨论(0)
  • 2021-02-05 13:34

    My case was, I had another git repository above my current repository so it was nested. After removing the incorrect above repository, for the current nested repository, it was possible to commit and push.

    0 讨论(0)
提交回复
热议问题