Help us understand the problem. What is going on with this article?

間違えてVCCWで自動生成されるファイルもご丁寧にgitignoreに突っ込んでなかったのでgitで無視させたら1,015,563行の削減ができた話

スクリーンショット 2019-03-18 1.43.57.png
えー、ヒッジョーにアホ臭い話なのですが、仕事でやってるWordPress案件をVCCWで回してまして、VCCWで自動生成されるコードを.gitignoreに追加してなかったので追加したら1,015,563行の削減ができたことをお知らせします。

最初は

.DS_Store
.ansible
.bundle
.envrc
.github/
.idea/
.travis.yml
.vagrant
npm-debug.log
package.box
playbook.retry

/wordpress/.htaccess
/wordpress/sitemap.xml
/wordpress/sitemap.xml.gz
/wordpress/wp-config.php
/wordpress/wp-content/advanced-cache.php
/wordpress/wp-content/backup-db/
/wordpress/wp-content/backups/
/wordpress/wp-content/blogs.dir/
/wordpress/wp-content/cache/
/wordpress/wp-content/upgrade/
/wordpress/wp-content/wp-cache-config.php
/wordpress/wp-content/ai1wm-backups

という.gitignore(多分最初こんな感じ)だったのですが、これをいろいろ自動生成されそうなものを追加していって

.DS_Store
.ansible
.bundle
.envrc
.github/
.idea/
.travis.yml
.vagrant
npm-debug.log
package.box
playbook.retry
!*.gitignore
/wordpress/.editorconfig
/wordpress/.htaccess
/wordpress/index.php
/wordpress/license.txt
/wordpress/readme.html
/wordpress/sitemap.xml
/wordpress/sitemap.xml.gz
/wordpress/wp-activate.php
/wordpress/wp-blog-header.php
/wordpress/wp-comments-post.php
/wordpress/wp-config-sample.php
/wordpress/wp-config.php
/wordpress/wp-cron.php
/wordpress/wp-links-opml.php
/wordpress/wp-load.php
/wordpress/wp-login.php
/wordpress/wp-mail.php
/wordpress/wp-settings.php
/wordpress/wp-signup.php
/wordpress/wp-trackback.php
/wordpress/xmlrpc.php
/wordpress/wp-admin/
/wordpress/wp-content/advanced-cache.php
/wordpress/wp-content/backup-db/
/wordpress/wp-content/backups/
/wordpress/wp-content/blogs.dir/
/wordpress/wp-content/cache/
/wordpress/wp-content/languages/
/wordpress/wp-content/plugins/
/wordpress/wp-content/themes/index.php
/wordpress/wp-content/themes/twentyfifteen/
/wordpress/wp-content/themes/twentyseventeen/
/wordpress/wp-content/themes/twentysixteen/
/wordpress/wp-content/themes/twentynineteen/
/wordpress/wp-content/upgrade/
/wordpress/wp-content/ai1wm-backups/
/wordpress/wp-content/wp-cache-config.php
/wordpress/wp-content/index.php
/wordpress/wp-includes/
node_modules/

にしました。結果、
スクリーンショット 2019-03-18 1.52.54.png
こんなアホなお兄さんの真似はしちゃダメだゾ

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away