What does “Changes not staged for commit” mean

前端 未结 9 1994
再見小時候
再見小時候 2021-01-29 17:17

I thought if you want to track the files you should git add [files you want to track]

I don\'t know why I got the messages Changes not staged for com

9条回答
  •  不思量自难忘°
    2021-01-29 18:05

    You have to use git add to stage them, or they won't commit. Take it that it informs git which are the changes you want to commit.

    git add -u :/ adds all modified file changes to the stage git add * :/ adds modified and any new files (that's not gitignore'ed) to the stage

提交回复
热议问题