git - Git 状态显示未跟踪的“主”文件
问题描述
我试图了解这个未跟踪的文件是什么以及它为什么存在:
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
master
nothing added to commit but untracked files present (use "git add" to track)
解决方案
Untracked files
是那些尚未与上游合并/提交/同步的新添加的文件。易言Untracked files
是新添加的变更文件。
推荐阅读
- c# - 修改结构变量
- visual-foxpro - Windows 10 1803 的 VFP 网络问题
- reactjs - 如何将其孩子接受的仅限父母的道具传递给父母?
- javascript - 对于成功的同源请求,Fetch 会抛出“TypeError: Failed to fetch”
- c# - 为什么以及何时需要在异步函数中等待?
- vba - 日期清理功能
- java - 在java中打印以相同字母开头和结尾的字符串中的所有单词
- redux - React Redux 将 action 分发到另一个域进行身份验证
- c++ - 为不同的目标 MCU 开发 C/C++ 代码的区别
- openstack - openstack heat 无法识别 key_name 参数