Question about configuring git commit signing for Multiple GitHub Accounts
Hi,
I have two GitHub accounts, one for personal and another for academic purposes. I configured my git config to work with both accounts by following these steps provided in the documentation. When I commit, 1password displays the appropriate SSH key for authentication, and the commits are successfully verified on GitHub.
However, I also came across a section on configuring multiple ssh keys for multiple GitHub accounts using the ~/.ssh/config file. I have not followed these steps.
My question is whether the git commit signing will work as intended without modifying the ~/.ssh/config file. Currently, my ssh config file has the default configuration set by 1password.
Thank you.
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
Comments
-
Hi @404, thanks for your question!
Your commit signing will work as intended without modifying
~/.ssh/config
.Your
~/.ssh/config
file is used by the ssh client for authentication, this includes pushing to and pulling from GitHub. It does not have an affect on commit signing. The second link you mentioned is specifically for using multiple keys for authentication.The git configuration you linked is exclusively for commit signing.
Let us know if you have any further questions!
1