Skip to main content Skip to complementary content

Signing commits and tags with GPG in the standard Git storage mode

Talend Studio supports enabling Git signature verification and signing commits and tags with GPG in the standard Git storage mode.

Before you begin

  • The standard Git storage mode has been enabled in Talend Studio. For more information, see Enabling the standard Git storage mode.
  • A GPG key has been generated for Git signature verification. For more information, see Generating a new GPG key.
    Information noteTip: You must note down the passphrase you use when generating a new GPG key. You need to enter the passphrase to unlock the GPG secret key in Talend Studio after enabling Git signature verification.

About this task

To enable Git signature verification in Talend Studio, do the following:

Procedure

  1. If you want to enable Git signature verification on a specific repository, add the corresponding local repository in the Git Repositories view as the following.
    1. From the menu bar, click Window > Show view... to open the Show View dialog box.
    2. In the Show View dialog box, expand Git and select Git Repositories.
    3. Click Open to open the Git Repositories view.
    4. Click Add Git repositories in the upper-right corner of the Git Repositories view to open the Add Git Repositories dialog box.
    5. In the Directory field, browse to your local repository on which you want to enable Git signature verification.
    6. Select the local repository in the Search results list.
    7. Click Add.
      The local repository is added in the Git Repositories view.
  2. From the menu bar, click Window > Preferences to display the Preferences dialog box.
  3. On the tree view in the Preferences dialog box, click Version Control (Team) > Git > > Configuration to display the relevant view.
    Configuration section of the Preferences dialog box.
  4. If you want to enable Git signature verification on all repositories, go to the User Settings tab.
  5. If you want to enable Git signature verification on a specific repository, go to the Repository Settings tab and select the repository from the Repository drop-down list.
  6. Add the following configuration entries one by one by clicking Add Entry... and in the pop-up dialog box, entering the key and the value for the entry in the corresponding fields.
    • The key commit.gpgsign with the value true for signing commits
    • The key tag.gpgSign with the value true for signing tags
    • The key user.signingkey with the GPG key ID as its value
  7. Click Apply and Close to save all your changes and close the Preferences dialog box.
    Git signature verification is now enabled and all commits and tags will be signed.

    Later, when you commit a change or create a new tag for the first time after enabling Git signature verification, a dialog box pops up, and you need to enter the passphrase you use when generating the GPG key.

    Dialog box to enter the passphrase.

    Note that commits will not be signed if the Sign Commit button is disabled in the Git Staging view.

    Git Staging view.
    Information noteNote: If you installed Gpg4win-4.2.0 or later, before signing any commits or tags in Talend Studio, you need to run the following command in the Command Prompt window:
    gpg-disable-keyboxd 
    Note that this command only need to be executed one time for all signings. For more information, see https://github.com/eclipse-egit/egit/issues/12.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!