git提交的时候Changes not staged for commit

git删除和修改一些文件之后,git add -A之后就使用git commit -m "提交最新代码"后报错

On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:

但是使用git push origin master怎么都提交不上去,解决办法如下:

git add -A

git commit -am "提交最新代码"

git push origin master

你可能感兴趣的:(git,git)