Browse Source

git: ssh commit signing

raylu 8 months ago
parent
commit
180cb7474d
2 changed files with 12 additions and 1 deletions
  1. 11 1
      gitconfig
  2. 1 0
      ssh/allowed_signers

+ 11 - 1
gitconfig

@@ -1,7 +1,16 @@
 [user]
 	name = raylu
 	email = 90059+raylu@users.noreply.github.com
-	signingkey = BA778D8B
+	signingkey = ~/.ssh/id_ed25519.pub
+
+[gpg]
+	format = ssh
+[gpg "ssh"]
+	allowedSignersFile = ~/.ssh/allowed_signers
+[commit]
+	gpgsign = true
+[tag]
+	gpgsign = true
 
 [color]
 	ui = true
@@ -92,6 +101,7 @@
 	decorate = true
 
 [alias]
+	l = log --graph --abbrev-commit --stat --summary -C --decorate --date=local
 	short = log --graph --pretty=format:'%C(yellow)%h%Creset %Cgreen(%cd) %C(bold blue)%aN%Creset %C(red)%d%Creset%n\t%s' --abbrev-commit --patience --date=local
 	ff = merge --ff-only
 	amend = commit --amend

+ 1 - 0
ssh/allowed_signers

@@ -0,0 +1 @@
+raylu@benchling.com namespaces="git" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMQyY8qhakFYLJY4kEXuWMclyBCIz0uzvMEEhB7o+czr