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

How to pass multiple patterns in .gitallowed file #238

Open
karthik-philips-ta opened this issue May 17, 2023 · 1 comment
Open

How to pass multiple patterns in .gitallowed file #238

karthik-philips-ta opened this issue May 17, 2023 · 1 comment

Comments

@karthik-philips-ta
Copy link

I am trying to pass multiple patters from the .gitallowed file in separate line like below, but it fails if i am passing single patterns it works fine. kindly pls let me know how to pass the multiple patters.

id\s*=\s*("[^"]"|'[^']')
SECRET_KEY\s*:\s*("[^"]"|'[^']')

@peterklein2024
Copy link

It seems like you are referring to a task related to specifying multiple patterns in a ".gitallowed" file, possibly for some kind of version control system. Here's a simplified explanation:

Open or Create ".gitallowed":

Find or create a file called ".gitallowed" in your project.
Specify Multiple Patterns:

Inside the ".gitallowed" file, you can list multiple patterns, each on a new line, to include or allow in your version control system. For example:
plaintext
Copy code

.gitallowed

.txt
/images/

src/*.js
This example includes all ".txt" files, everything inside the "images" directory, and all JavaScript files in the "src" directory.

Save Changes:

Save the changes to your ".gitallowed" file.
Commit and Push:

If you are using Git, you need to commit and push the changes to make them part of your version control history.
bash
Copy code
git add .gitallowed
git commit -m "Specify multiple patterns in .gitallowed"
git push origin your_branch
Replace the patterns in the file with your actual file or directory patterns. This helps control which files and directories should be tracked by your version control system.

If this is related to a specific project or issue (#238), be sure to check any project documentation or discussions for additional context or specific instructions related to your situation

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

2 participants