昨天发现在提交commit的时候,老是有文件没能增加到分支中,
操作流程:1
2git add . // 增加文件到分支中
git status // 显示仓库状态
具体错误:1
2
3Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
解决方案:
修改当前路径