3 ms·
Cool post. I highly suggest using templates from https://github.com/github/gitignore https://github.com/github/gitignore for your project as they tend to inclu
by davydm 1y ago
Cool post.
I highly suggest using templates from https://github.com/github/gitignore https://github.com/github/gitignore for your project as they tend to include a lot of files commonly found in them - eg .idea folders and so on.
- RGBCube 1y agoThey're still not enough. Even with those, it's really easy for stuff to slip in. You should just pick the nearly exhaustive option instead
- FrenchyJiby 1y agoYes-anding this to say: For per-user gitignore, one can set the following config in ~/.gitconfig: # System-wide gitignore file # To avoid in-repo repetition for system-specifc garbage files [core] excludesfile = ~/.config/git/gitignore Then your file at ~/.config/git/gitignore can be a normal format, and not need to be stored in repo. Perfect for system files (.DS_Store...) or editor swap files etc.
- tonymet 1y agogreat tip!
- Baarsgaard 1y agoGit will per default read ~/.config/git/ignore No need to configure it :)