Edit me

Go to your Kratos folder:

cd kratos

And edit the file .git/info/exclude (NOTE: You can use your favourite editor, not necessarily Emacs):

emacs .git/info/exclude

Add the following lines inside the file:

KratosMultiphysics/
applications/python_scripts/ 
libpython2.7.so.1.0
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