One trick I’ve used is creating a folder and then adding a .gitignore inside it with *. Then nothing in that folder gets tracked, without needing to add anything to the public gitignore. Didn’t know about .git/config though!
Yeah it's in the document but there are no examples on it.
Yeah it's in the document but there are no examples on it.