Skip to content

Instantly share code, notes, and snippets.

View az82's full-sized avatar

Andreas Zitzelsberger az82

View GitHub Profile
@az82
az82 / git-set-user.sh
Created October 26, 2018 11:31
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" ]
then
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 (https://keybase.io/az82) on keybase.
  • I have a public key ASDo9mcQU2ydsk16L3W4OuG8RMp7FQLDTHtVWi6og9Xowgo

To claim this, I am signing this object: