How can I ignore .pyc files in git?
If I put it in .gitignore it doesn’t work. I need them to be untracked and not checked for commits.
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.
Put it in
.gitignore. But from thegitignore(5)man page:So, either specify the full path to the appropriate
*.pycentry, or put it in a.gitignorefile in any of the directories leading from the repository root (inclusive).