-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
已追蹤(tracked)項目 V.S. 未追蹤(untracked)項目
有提交變更到版本倉庫中的項目會被 Git 版本控制系統追蹤(track)它的變動,如果您再一次修改該項目的話下一次執行 status Git 命令就會顯示如下:
$ git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: 〈被修改的項目名稱〉
版本控制系統尚未追蹤變更的項目則會顯示為 untracked files(尚未被追蹤的檔案):
Untracked files:
(use "git add <file>..." to include in what will be committed)
〈沒被版本控制系統追蹤的項目〉
status Git 命令會貼心地提示您此時可以採取的操作。
,基本上包含:
* 未被被追蹤版本的檔案(untracked file)
* 已被追蹤版本的檔案(tracked file)
* 已被追蹤,且有尚未提交至提交準備區域(staging area)的變更的檔案(tracked file with unstaged changes)

▲從 [Git Cola](http://git-cola.github.io) Git 前端軟體的狀態小工具看到的狀況
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels