Skip to content

Purpose of gitignore and interplay with git clean #59

Answered by alirezanet
tiplu-alexpovel asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tiplu-alexpovel,

These files are ignored by default because usually, people don't want to push the husky internal files to their repository. However, you have raised an interesting issue! Removing the .gitignore file might solve the problem, but it will probably be regenerated each time you use the husky install command (I haven't tested it yet). This isn't the best solution if it gets regenerated.

However, I can add an option to the install command to prevent generating the .gitignore file if you think it could solve the problem. Please let me know if you think this option could work, and if you have any other ideas or suggestions for resolving the issue. I will do my best to impleme…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@alirezanet
Comment options

Answer selected by tiplu-alexpovel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants