Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ベースフォルダーのコンポーネントディレクトリを除外したいが、他のコンポーネントディレクトリは除外したくない:
/components --- WANT EXCLUDED /client/components --- WANT INCLUDED
私の.gitignoreはどのように見えるべきですか
.gitignore で /components を実行するだけです
を先頭に追加することで、例外を追加できます。!
!
したがって、あなたの場合、 .gitignore ファイルは次のようになります
components !/client/components