add git 指定类型文件夹_将新创建的特定文件夹添加到Git中的.gitignore

I had a clean working directory and brought in a clone from a Git repo last night.

But now my local server created and contains a stats folder which I want to ignore.

I can't seem to get Git to ignore this folder when I run a git status.

On branch master

Your branch is ahead of 'origin/master' by 1 commit.

Changes to be committed:

(use "git reset HEAD ..." to unstage)

new file: app_public/views/pages/privacy.php

new file: app_public/views/pages/terms.php

new file: public_html/stats/ctry_usage_200908.png

new file: public_html/stats/daily_usage_200908.png

new file: public_html/stats/dns_cache.db

new file: public_html/stats/hourly_usage_200908.png

new file: public_html/stats/index.html

new file: public_html/stats/usage.png

new file: public_html/stats/usage_200908.html

new file: public_html/stats/webalizer.current

new file: public_html/stats/webalizer.hist

Changed but not updated:

modified: .gitignore

I added in my .gitignore a few different lines but it still trying to add them:

public_html/stats

public_html/stats/**

public_html/stats/**/*

public_html/stats/*

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值