Skip to content

Instantly share code, notes, and snippets.


Andreas Zitzelsberger az82

View GitHub Profile
az82 /
Created Oct 26, 2018
git-set-user .profile function
# Sets the user email and GPG signing key for a Git repository and turns on commit signing for that repository
# Usage: git-set-user EMAIL [PATH_TO_GIT_REPO]
# If no Git repository is provided, the current working directory will be used.
function git-set-user() {
if [ "$#" -lt "1" ]
echo "Missing required arguments" >&2
echo "Usage: git-set-user EMAIL [PATH_TO_GIT_REPO]" >&2
return 65

Keybase proof

I hereby claim:

  • I am az82 on github.
  • I am az82 ( on keybase.
  • I have a public key ASDo9mcQU2ydsk16L3W4OuG8RMp7FQLDTHtVWi6og9Xowgo

To claim this, I am signing this object: