Git · Middle · Question 26 of 75

Why sign commits or tags with GPG or SSH keys?

Explanation

Anyone can set user.email to anything. Signatures let platforms show "Verified" and let protected branches require signed commits.

Further reading

Problem with a question

Git · Middle · question 26

Test yourself

Take the Git · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz