When I open the "Settings for this repository" dialog and go to the "Security" tab, the GPG key menu looks as it does in the screenshot below. There are key IDs, but there's no other identifying information. All the user information shows "0". How can I fix that to show user name, email address, or whatever information available to make it easier for me to identify the key I want to use?
Hey @sloanlance ,
I'm away on a trip so I don't have times to test this out, but have you checked these (officially, articles are for Bitbucket, but might help out):
There are also these things you might try:
Check your GPG key details locally
Open a terminal and run: gpg --list-secret-keys --keyid-format LONG
- The output should show your key(s) with associated user info, for example:
sec rsa3072/123456789ABCDEF 2024-12-09 [SC]
FA6BC6AC6675DB51234567890ABCDE
uid [ultimate] John Doe <jdoe@example.com>
ssb rsa3072/ZWXY09876543LE00 2024-12-09 [E]If the UID line (with name/email) is missing or blank, your key does not have user info attached
If user info is missing
- You may need to generate a new GPG key and ensure you provide your name and email when prompted: gpg --full-generate-key
- Follow the prompts and enter your identifying information when asked
If User Info Exists but Not Showing in Sourcetree
Make sure Sourcetree is using the correct GPG installation and keyring.
Try restarting Sourcetree after confirming your key details.
If the issue persists, check that your Git configuration is pointing to the correct GPG key: git config --global user.signingkey <yourKeyID>
Again, I have not tested these out so I'd suggest give it a go. From what I'm seeing it might be the case of missing property or something like that.
Cheers,
Tobi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.