Configure git submodule for no password (ssh)

If you are leveraging git submodule for Hugh themes and you are accustomed to using git without passwords (via ssh urls), you’ll find that when you add a git submodule, it will be setup for “https urls” and thus prompt you for a password:

$ git push origin master
Username for '': 

This is obviously annoying but easy to fix. You can check the urls for your origin with git remote -v:

$ git remote -v
origin (fetch)
origin (push)

and then simply update the origin with the ssh url:

$ git remote set-url origin

Now when you git push origin master, the push will occur over ssh and viola, no more passwords.