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

Exclusion format #2

Closed
anshulahuja98 opened this issue Apr 20, 2020 · 5 comments
Closed

Exclusion format #2

anshulahuja98 opened this issue Apr 20, 2020 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@anshulahuja98
Copy link

What exactly is the exclusion format for files and folders?

I want to exclude
.git/
.github/
.gitignore

How should I add them to the exclusion list?

@TheDoctor0
Copy link
Owner

Hello.
It's actually quite simple, you can use regex like this:
exclusions: '*.git*;

@TheDoctor0 TheDoctor0 self-assigned this Apr 20, 2020
@TheDoctor0 TheDoctor0 added the question Further information is requested label Apr 20, 2020
@anshulahuja98
Copy link
Author

It didn't work properly for multiple paths as I described
Can you perhaps show an example for the files I mentioned above?

'*.git* .gitignore'

I used this but it didn't work on gitignore

@TheDoctor0
Copy link
Owner

If you want to just exclude those two directories and .gitignore you can list them one by one:
'*.git* *.github* .gitignore'
It is actually part of definition for one of my private projects and works fine.

You can test this exclusions using from terminal after installing zip package like so:
zip -r . -x '*.git* *.github* .gitignore'

@anshulahuja98
Copy link
Author

Thank you for your support

@TheDoctor0
Copy link
Owner

Glad to help 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants