CharLie071005 / OOP_final_project

MIT License
1 stars 0 forks source link

gitignore usage #5

Closed coherent17 closed 2 months ago

coherent17 commented 2 months ago

check how to use gitignore don't push cppcheck into the repo!

Ouzheee commented 2 months ago

Got it !

coherent17 commented 2 months ago

gitignore, should ignore the whole folder, not just part of the files inside the cppcheck folder.

Ouzheee commented 2 months ago

Is is incorrect? It seems like the cppcheck doesn't push to repo anymore.

third-party/*
*.jpg
*.png
obj/*.o
obj/*.d
Image_Processing
cppchecnk-2.13.0
coherent17 commented 2 months ago

should be:

cppchecnk-2.13.0/

To ignore an entire directory with all its contents, you need to include the name of the directory with the slash / at the end!

Besides, you also push the cppcheck compressed file, should be deleted...