Skip to content

Commit

Permalink
.gitconfig: Sign commits using GPG
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Apr 6, 2016
1 parent ec493f5 commit fb0bd71
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,18 @@
changed = green
untracked = cyan
[commit]
# https://help.github.com/articles/signing-commits-using-gpg/
gpgsign = true
[diff]
# Detect copies as well as renames
renames = copies
[diff "bin"]
# Use `hexdump` to diff binary files
textconv = hexdump -v -C
Expand Down

5 comments on commit fb0bd71

@vinkla
Copy link
Contributor

@vinkla vinkla commented on fb0bd71 Apr 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mathiasbynens Do you have to enter your passphrase every time you push now or is there another way?

@mathiasbynens
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vinkla AFAIK you’ll have to enter your passphrase for every commit. I guess you could set up a passphrase-less GPG key but that wouldn’t be as secure.

@hkdobrev
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could use gpg-agent running in the background and configure it to ask for passphrase only X number of seconds or only once. If you have a key like Yubico you could connect with gpg-agent and then entering your passphrase is just a touch on the key.

@vinkla
Copy link
Contributor

@vinkla vinkla commented on fb0bd71 Apr 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hkdobrev cool, any article on how to set it up?

@AdriVanHoudt
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.