search

Home  >  Q&A  >  body text

github - git staging modified files

In the root directory Project, git init
Then I wanted to git add -A all the files into the temporary storage area, but in the end only gulpfile.js, bower.json, and publicindex.html were successfully put into the temporary storage area. Area, others cannot be put in, maybe it is a common sense mistake, but please give me some advice, thank you.

为情所困为情所困2770 days ago609

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座2017-05-02 09:34:49

    These files are still in the workspace and have not been entered into the temporary storage area. You need to git add --all or selectively add git add file

    Reference for specific concepts:
    http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/0013745374151782eb658c5a5ca454eaa451661275886c60 00

    reply
    0
  • 某草草

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

    Brother, red does not mean an error is reported. The red lines mean that your files have never been added to the git repository, so they are untracked.

    reply
    0
  • Cancelreply