conedevelopment / cone-site

The new 11ty-based portfolio website of Cone.
https://conedevelopment.com
3 stars 2 forks source link

Keeping OS, IDE and local environment gitignores on your local machine #2

Closed szepeviktor closed 11 months ago

szepeviktor commented 11 months ago

A single .gitignore file cannot cover every OS, every IDE and every local environment. List your gitignores in a file: ~/.gitignore git config --global core.excludesFile ~/.gitignore will ignore all your local files in every project once and for all 🎉

szepeviktor commented 11 months ago

Only technologies used in this project should be listed in the repository.

# Dependencies
NPM stuff
# Application
Web stuff
# Tests
If there are tests ...
# Distribution
Files used for deploying this website
adamlaki commented 11 months ago

I don't understand this. What is the problem with the .gitignore file?

szepeviktor commented 11 months ago

What is the problem with the .gitignore file?

It tries to cover every OS, every IDE and every local environment. That is impossible 💥 All contributors should have their stuff ignored locally in ~/.gitignore.

The project's .gitignore file should cover only the project's ignored files.

szepeviktor commented 11 months ago

🎈 It will be big Fun! Trust me.

adamlaki commented 11 months ago

Ahh, I get it and have a gif for this: https://media.giphy.com/media/bWM2eWYfN3r20/giphy.gif

szepeviktor commented 11 months ago

This is a single ~/.gitignore file, you have to create once in your life.

git config --global core.excludesFile ~/.gitignore