什么是GIT命令清除未跟踪的文件,并且不想添加/提交

时间:2018-07-11 22:19:57

标签: git-untracked

git状态提供了一些未跟踪文件,当这些文件变为未跟踪文件时,我不会提供这些文件。 现在,我不希望他们在正确检查它们之前添加或提交并在需要任何更改时提交。

现在,我只希望它们从未跟踪的文件中删除并表现为正常文件。

注意:当我尝试添加和重置这些文件时,它们仅返回“未跟踪的文件”列表(我不想要)

jayadev$ git status

On branch working_branch
Your branch is ahead of 'origin/working_branch' by 1 commit.
  (use "git push" to publish your local commits)

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:   path/changes_done_01.py

Untracked files:

  (use "git add <file>..." to include in what will be committed)

        data/uf_01/
        data/scripts/clear_it.py

no changes added to commit (use "git add" and/or "git commit -a")
jayadev$ 

0 个答案:

没有答案