git push specify ssh creds code example
Example 1: how to set up git ssh creds to push
$ git config credential.helper store
$ git push https://github.com/owner/repo.git
Username for 'https://github.com': <USERNAME>
Password for 'https://[email protected]': <PASSWORD>
Example 2: git push specify ssh key
GIT_SSH_COMMAND='ssh -i ~/.ssh/your_private_key' git submodule update --init