gpg sign git commit, for linux and windows

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


If you were using windows, you may download gpg4win

It contains very useful client kleopatra


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



The example git config looks like

$cat ~/.gitconfig

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

Post: 1970.01.01 08:33

Views: 305

Edit blog

Follow me: @twitter @github
Scan QR code and Donate me via alipay:
donate me via alipay
Donate me Bitcoin:136MYemy5QmmBPLBLr1GHZfkES7CsoG4Qh
Powered by josense, Last updated: 2019-04-15 09:45 RSS