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怎么都提交不上去,解决办法如下:

cs 复制代码
git add -A

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

git push origin master
相关推荐
kyriewen16 小时前
别再每次都 Google 了:我整理了前端日常最常踩的 10 个 Git 坑,附速查表
前端·javascript·git
A_Lonely_Cat3 天前
记一次 GitHub 幽灵协作者大清洗:强制重写 Git 历史与穿透 CDN 缓存实践
git·github
和你看星星5 天前
Git rerere:让重复冲突只解决一次
git
嘻嘻仙人9 天前
Ubuntu中 git上传自己的项目和二次上传一般流程
git·github
Patrick_Wilson9 天前
Squash Merge 的血缘陷阱:为什么删掉的代码又活了过来
前端·git·程序员
沉浸学习的匿名网友9 天前
什么是 .gitignore?为什么每个 Git 项目几乎都离不开它?
前端·git
深海鱼在掘金10 天前
Git 完全指南 —— 第3章:理解工作区、暂存区、版本库三个核心
git
江华森10 天前
Git 基础筑基:从原理到团队协作的全栈实战
git
JakeJiang10 天前
Git 必备命令指南:从日常高频到项目开发实战
git
叫我少年11 天前
Windows 中安装 git
git