Why does 'git commit' not save my changes?

前端 未结 12 1606
星月不相逢
星月不相逢 2020-11-29 15:16

I did a git commit -m \"message\" like this:

> git commit -m \"save arezzo files\"
# On branch master
# Changes not staged for commit:
#   (u         


        
12条回答
  •  臣服心动
    2020-11-29 15:42

    You could have done a:

    git add -u -n
    

    To check which files you modified and are going to be added (dry run: -n option), and then

    git add -u
    

    To add just modified files

提交回复
热议问题