Git: file “changed but not updated”

后端 未结 3 1030
小蘑菇
小蘑菇 2021-02-02 09:15

What does \"Changed but not updated mean\"? These files are in git, they\'ve been modified but when I run \"git status,\" these changes appear under \"Changed but not updated\"

3条回答
  •  有刺的猬
    2021-02-02 09:41

    The git add adds the 'changes' to your local commit schedule, if those changes aren't added, then they aren't committed.

    Why? This is git's workflow, just like anything there is terminology that is open to interpretation, perhaps you're used to SVN's idea of add, try to forego what you assume and learn how git does things.

提交回复
热议问题