Why does 'git commit' not save my changes?

前端 未结 12 1609
星月不相逢
星月不相逢 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:48

    You didn't add the changes. Either specifically add them via

    git add filename1 filename2
    

    or add all changes (from root path of the project)

    git add .
    

    or use the shorthand -a while commiting:

    git commit -a -m "message".
    

提交回复
热议问题