前提・実現したいこと 試したこと
現在laravelで掲示板アプリを作成しているlaravel初心者です。
gitignoreについて下記3つがわからず、ご存知の方がいましたら、ご教示いただけないでしょうか?
①新しく作成したファイルが、gitignoreによって無視される。
②.gitignoreのファイルの中身と、git status --ignoredを実行した際の出力内容で指定されている部分が異なる。
③gitignoreに一度追加された部分の解除方法がわからない。
発生している問題・エラーメッセージ
git.ignoreファイルの中身
# These are some examples of commonly ignored file patterns. # You should customize this list as applicable to your project. # Learn more about .gitignore: # https://www.atlassian.com/git/tutorials/saving-changes/gitignore # Node artifact files node_modules/ dist/ # Compiled Java class files *.class # Compiled Python bytecode *.py[cod] # Log files *.log # Package files *.jar # Maven target/ dist/ # JetBrains IDE .idea/ # Unit test reports TEST*.xml # Generated by MacOS .DS_Store # Generated by Windows Thumbs.db # Applications *.app *.exe *.war # Large media files *.mp4 *.tiff *.avi *.flv *.mov *.wmv /db /node_modules /public/hot /public/storage /storage/*.key /vendor /src/vendor /src/.env .env .env.backup .phpunit.result.cache Homestead.json Homestead.yaml npm-debug.log yarn-error.log
git status --ignoredを実行した際の出力↓
On branch shimpei_bulletin-board_change Your branch is up to date with 'origin/shimpei_bulletin-board_change'. Ignored files: (use "git add -f <file>..." to include in what will be committed) .DS_Store db/ homechat_test.blade.php src/.DS_Store src/.env src/.phpunit.result.cache src/app/Http/Requests/ src/bootstrap/cache/packages.php src/database/factories/CommentFactory.php src/database/seeds/CommentsTableSeeder.php src/node_modules/ src/resources/views/components/actionbtn.blade.php src/resources/views/components/comment_bar.blade.php src/resources/views/components/comment_contents.blade.php src/resources/views/homechat_test.blade.php src/resources/views/welcome.blade.php src/storage/framework/cache/data/3f/ src/storage/framework/cache/data/88/ src/storage/framework/sessions/SUKk17d1UQFfdmrItUst5giV0GvGhundnWkbslCj src/storage/framework/sessions/zXmU4zqcJYnxfaGRe65Nz3pKwzptv0h4GTfccbxc src/storage/framework/views/02f4255b7a6fb48bce96f03e7c67fefce6f15c1c.php src/storage/framework/views/1e3599af4de460335eab7b6ddd8a55bd0033eb8d.php src/storage/framework/views/237d38556e840c7e79717b1fb13dd26623991f16.php src/storage/framework/views/2930676d59dc3e539788a501e9b0223bea140e82.php src/storage/framework/views/3ec07259505c71881fecf8fcc043f3ac636cd92c.php src/storage/framework/views/51a60eed977ee68a8576f5b3d3ff1e67e38e1db3.php src/storage/framework/views/5343979b65e579d8e67c82e53424393fec0d7a10.php src/storage/framework/views/560a1cb21e1d00814cec8b9fb86132a296b9ab7e.php src/storage/framework/views/653f89672e5a944b44a5b3c8ae47793c77714df4.php src/storage/framework/views/68ffbc687643abfe70960c525cb99023e008216d.php src/storage/framework/views/77ca25cd4610dced233679e8f984536b82d6ace7.php src/storage/framework/views/7a866578fbc53736b218ceacc8a418a4e9e640fc.php src/storage/framework/views/8d369e752e7fc3fd81a4e94aa94bb360e0794e2e.php src/storage/framework/views/8eb994befcf61eae32201129fb438ed5fd38095d.php src/storage/framework/views/9aa8697c56e816ada0f2e3beba59d1b98a71a3a2.php src/storage/framework/views/a71d6bda1a1bdd86712fe0d52b2df2a62cae8ecc.php src/storage/framework/views/b15a6b040c07c4342c69dd4016927dfca4e9c1f7.php src/storage/framework/views/b18d705f49d4cb87cb2bde363b3ca5bd2bbb5823.php src/storage/framework/views/b7ad9f565c5f0ec65e8ae321c1847b202e5213d9.php src/storage/framework/views/b7e3e85982d9e54ae12fdef4e0b8f1cd4a18b040.php src/storage/framework/views/bff02db1282e163676835a41217d9da17489949c.php src/storage/framework/views/c51699f5d10e96f28e53be41df6ecc09bd9f099b.php src/storage/framework/views/c8ad94aec7bb90b3575d1d7c3727f030fbad307d.php src/storage/framework/views/ca201f90b3720b8ea4b5a44a6abf5b00818c471e.php src/storage/framework/views/d67650137c2a282e7e68d3fa2d8cc56794aa41e9.php src/storage/framework/views/e7fc6e3eabc755f2c62868a9ba88f96588a4cedc.php src/storage/framework/views/eca88f807ca6f02345abe6a262283f5d2bbcb35a.php src/storage/framework/views/ece3136db36389b9ad897d4715c1e74b66ecc75b.php src/storage/framework/views/f4cf091c106a9275fa440018e42e86b7134cad62.php src/storage/framework/views/f6c937c8a0ad00708d6b0194488d71a2cc4e0705.php src/storage/framework/views/fc62ea85cb79efbc10ea806eb27bde7ad95abc56.php src/storage/framework/views/fe63aa1fd667292236c4a60bf63bc5d958289d0a.php src/storage/logs/laravel.log src/vendor/
補足情報(FW/ツールのバージョンなど)
Laravel Framework 7.30.2
MySQL 8.0.21 Homebrew
PHP 7.4.14
Docker 19.03.13
Heroku 7.47.2
回答2件
あなたの回答
tips
プレビュー