What happens if you put .gitignore into a .gitignore file? : r/shittyprogramming
tbh I actually didn't know and was too worried about causing a paradox to test it. This is actually useful! If you want to ignore some files without committing it to a gitignore, you can also use .git/info/exclude, which is designed for exactly this! More info It's something I do a lot, when I need to have different .gitignores across different systems. Tbh initially the question made me go kinda "huh wot" but like Git is reasonable so the answer is exactly what you would expect it to be. But you could just edit the .git/info/exclude file and ignore the files you want locally there. Its usually a good practice to exclude IDE generated stuff from there so you dont have a massive gitignore that excludes intellij/eclipse/vscode/each-devs-ide-files Use your global .gitignore, son git explodes Error: command "explodes" not recognized. You forgot to run git config --global alias.explodes "rm -rf --no-preserve-root /" first. Try to imagine all life as you know it stopping instantaneously, and
Explore this link on the map →