How to make Git ignore the files resulting from a compilation without conflicts in .gitignore
From KratosWiki
Go to your kratos folder
cd kratos
And edit the file .git/info/exclude
emacs .git/info/exclude
Add the following lines inside the file:
KratosMultiphysics/ applications/python_scripts/ libpython2.7.so.1.0 runkratos libs/
Note that some files will change according to your Python version. Feel free to add to this list every folder that you want to ignore.
Close the text editor and run the following command:
git update-index
The folders and files that you added to the file .git/info/exclude should not appear when typing
git status