You just started a new project. You ran cargo init , poetry init and go mod init .
Those commands created the necessary files to work, it also added the following lines to your .gitignore:
target __pycache__ bin
All great. You continue implementing features, and when the time comes, you publish your project to your Git hosting platform of choice.
People start to get interested in your project. One even decides that he's going to implement a new feature! Literally free work done for you!
Alright. That person uses his code editor and tools bundled with his operating system to implement a very cool new feature. He then submits the merge request.
You start reviewing the code and notice a file quite out of place: .DS_Store . You ask the person what it is, he says he has no clue.
Whatever. You just delete the file from the branch and add the file's name to the repositories gitignore:
target __pycache__ bin .DS_Store
Nice. Now the code is on master, and your repository only contains relevant information.
... continue reading