I’ve just started to learn C (using Thinking In C) and I’m wondering about what files I should be ignoring in a C project’s git repository.
No suggestion can be too obvious — I’m a total noob. Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I guess there will be a few generated files that you don’t wan’t to be sticking in your repo (assuming your build output dir is in your git heirachy):
GIT ignore files are something I tend to do iteratively. “Hey, I don’t need those things in my repo” …
Edit: re dmckee’s comment
Yep, you definately want to be ignoring swap files, temp files etc. I have the following as a baseline for my .gitignore: