首页 > 解决方案 > 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)

标签: git

解决方案


Untracked files是那些尚未与上游合并/提交/同步的新添加的文件。易言Untracked files是新添加的变更文件。


推荐阅读