search

Home  >  Q&A  >  body text

github - git always reports an error when adding files to the warehouse?

I use git to submit a folder to the warehouse, but as you can see in the picture, even after git commit, it still prompts that it has not been submitted. Please tell me why this is and how to solve it?

phpcn_u1582phpcn_u15822802 days ago702

reply all(3)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-02 09:49:22

    It should be that the directory where your submitted file is located has been ignored, so commit is useless. Check the .gitignore file. If it has been deleted, add it again

    reply
    0
  • 某草草

    某草草2017-05-02 09:49:22

    git commit -am "baidu_ife"

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-02 09:49:22

    Just do it like this, but it is not recommended to use the --all option

    frequently.
    git add --all
    git commit -m "备注"

    reply
    0
  • Cancelreply