Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.gitignore could use negative patterns #135

Open
toslunar opened this issue May 24, 2023 · 0 comments
Open

.gitignore could use negative patterns #135

toslunar opened this issue May 24, 2023 · 0 comments

Comments

@toslunar
Copy link

Even if we want to ensure that there's no tracked-but-ignored file, I suggest

-docs/source/_static/embed-bundle.js
-docs/source/_static/embed-bundle.js.map
+docs/source/_static/*
+!docs/source/_static/helper.js

and

-{{ cookiecutter.python_package_name  }}/nbextension/index.*
+{{ cookiecutter.python_package_name  }}nbextension/*
+!{{ cookiecutter.python_package_name  }}/nbextension/extension.js

In my project, in the directories there are generated files

  • index.js.LICENSE.txt
  • image files (after I added file-loader to webpack.config.js rules)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant