【发布时间】:2013-01-08 22:44:23
【问题描述】:
git 正在跟踪我对.gitignore 中的文件所做的更改。
文件结构:
.gitignore
wp-config.php
.gitignore的内容:
wp-config.php
当我更改wp-config.php,然后运行git status 时,我看到它已被修改:
alex$ 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: wp-config.php
#
如何停止跟踪此文件?我认为把它放在.gitignore 就足够了。
【问题讨论】:
标签: git command-line github terminal