Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ops] .pyc file in Git repo #1

Open
matiboy opened this issue Mar 22, 2017 · 1 comment
Open

[Ops] .pyc file in Git repo #1

matiboy opened this issue Mar 22, 2017 · 1 comment

Comments

@matiboy
Copy link

matiboy commented Mar 22, 2017

Explain why having a .pyc file under source control isn't a good idea
What steps will you take to remove the existing files (include git commands used)
Which other files or folders would you not have under source control

@ai550
Copy link

ai550 commented Mar 24, 2017

.pyc are files in form of bytecode that is compiled from Python source files.
Having those files onboard source control might cause trouble due to code for specific module being available in .pyc even after deleting the source file. The module may still be imported even when the source is long gone.

git -rm --cached *.pyc <-- command to use to remove .pyc files from source control tracking.

If preprocessors (Sass, Less, CoffeeScript etc.) are used then I would vouch for not including generated files due to irrelevance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants