gpg sign git commit, for linux and windows

For linux user and windows user, you can using gpg sign your git commit .

Windows 

If you were using windows, you may download gpg4win https://www.gpg4win.org/download.html

It contains very useful client kleopatra

Linux

I am  using archlinux, so i can ran yaourt -S kleopatra

 

Git 

The example git config looks like

$cat ~/.gitconfig

[user]
	name = huzhifeng
	email = [email protected]
	signingKey = 4AB75B
[push]
    default = simple
[core]
    editor = vim	
	filemode = false
[commit]
	gpgsign = true
[alias]
    ci = commit -s
    bn = checkout origin/master -b
    pr = push -u origin
    cm = checkout master
[diff]
	tool = meld
[merge]
	ff = false
	defaultToUpstream = true
[http]
	cookiefile = ~/.gitcookies
[color]
	ui = auto
[gc]
	autoDetach = false
[pull]
	rebase = true
[gpg]
	program = /usr/bin/gpg2
[gui]
	pruneduringfetch = true
[smartgit "submodule"]
	fetchalways = false
	update = true
	initializenew = true

Post: 2017-08-15 09:16:14

Views: 1

Follow me: @twitter @github
Scan QR code and Donate me via alipay:
donate me via alipay
Donate me Bitcoin:136MYemy5QmmBPLBLr1GHZfkES7CsoG4Qh
Powered by GoSense RSS