search

Home  >  Q&A  >  body text

git commit -m "" modiffed Why does this error occur?

黄舟黄舟2794 days ago562

reply all(1)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-02 09:34:09

    Changes not staged for commit” below this line, it means that the content of the tracked file has changed, but it has not been placed in the staging area. To stage this update, you need to run the git add command (this is a multi-function command, according to Depending on the status of the target file, the effect of this command is also different: you can use it to start tracking new files, or put tracked files into the temporary storage area, and it can also be used to mark conflicting files as resolved when merging, etc. ). git add puts the content into the staging area, and then look at the output of git status:

    reply
    0
  • Cancelreply