Don't commit the real config file, instead just commit a dummy file. E.g. "credentials.py.here" and add credentials.py to the gitignore.