After looking at git ignore exception, I realized that one can ignore files in a repository from a global .gitignore file.
Is there any way that you can override all rules from the global .gitignore file, so that the repository will have everything in it and nothing ignored? (besides un-ignoring every file individually)
Create a .gitignore in the repo folder with one rule:
!*
This forgets the rules (with !) of all of the files (*) in the main .gitignore.
You can.
Create you own .gitignore file with appropriate rules and put into directory in where it shall apply. The rules will be applicable for a directory with local .gitignore and its subdirs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With