<HTML>
<HEAD>
<TITLE>Ignore pyc files?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I’ve noticed that my build runs python on source files, and python automatically creates a compiled python file next to the source file. Consequently, after a build git reports untracked files:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'># On branch master<BR>
# Untracked files:<BR>
# (use "git add <file>..." to include in what will be committed)<BR>
#<BR>
# CoProcessing/CoProcessor/Testing/Cxx/PythonScriptTest.pyc<BR>
# Servers/ServerManager/Testing/Python/SMPythonTesting.pyc<BR>
nothing added to commit but untracked files present (use "git add" to track)<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
Does it make sense to add and check in a .gitignore file to ignore all .pyc files?<BR>
<BR>
-Ken<BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>