我有以下. gitignore 文件
# file named .gitignore
system/application/config/database.php
system/application/config/config.php
system/logs
modules/recaptcha/config/*
但是,当我在 config 和 appcha.php 中添加任何更改时,git status 会发出如下警告。 当我将任何更改添加到 datase.php 时,它不显示状态
shin@shin-Latitude-E5420:/var/www/myapp$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
# 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: modules/recaptcha/config/recaptcha.php
# modified: system/application/config/config.php
#
no changes added to commit (use "git add" and/or "git commit -a")
我该怎么补救?
先谢谢你。
我在 Ubuntu 11.04上使用 git 版本1.7.5.1