Since gitmodules were introduced in Git, I like to add them like so:
[submodule \"actionbarsherlock\"] path = actionbarsherlock url = git://github.com/JakeWh
Do you mean this?
git config --global core.ignore dirty
which writes the preference to your ~/.gitconfig file.
~/.gitconfig