I have multiple repositories that I am contributing to - Some are hosted on Github, and some on Assembla. Technically, my username varies between the two systems.
When I cd
to a given repository's contents, I need to know the following:
- git knows who I am (did this with
git config user.name
, notgit config --global user.name
) - whether or not I have authentication set up correctly via ssh
I am finding that git config --get user.name
yields the correct info, but when I try to pull or commit, I get prompted for my username:
Username for 'https://github.com'
How can I ensure that my identity is linked correctly to both git worlds? I realize that #1 has nothing to do with SSH keys, but committing, although it's part of my setup, so I include it here for reference on what I'm trying to accomplish.