git commit 报 "Changes not staged for commit:"是怎么回事?
本文介绍了git commit 报 "Changes not staged for commit:"是怎么回事?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
修改完代码git commit进行提交的时候,报出的log如下
deMacBook-Pro:cheatsheetcup yoo$ git commit -m"modified Cheatsheet.html"
On branch master
Changes not staged for commit:
modified: Python Cheatsheet.html
Untracked files:
.DS_Store
.idea/
no changes added to commit
在Python Cheatsheet.html这个文件中的内容是否有commited成功
解决方案
你 git add 了吗
这篇关于git commit 报 "Changes not staged for commit:"是怎么回事?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文