Saya memiliki direktori kerja yang bersih dan membawa tiruan dari repo Git tadi malam. Tetapi sekarang server lokal saya membuat dan berisi folder statistik yang ingin saya abaikan.
Saya tidak bisa membuat Git mengabaikan folder ini ketika saya menjalankan status git.
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
Changes to be committed:
(use "git reset HEAD <file>..." 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
Saya menambahkan di .gitignore saya beberapa baris berbeda tetapi masih mencoba menambahkannya:
public_html/stats
public_html/stats/**
public_html/stats/**/*
public_html/stats/*
git add-ed mereka.