* .config/git/config: Add alias instead of global email/signing preferences.
authorAmin Bandali <bandali@kelar.org>
Thu, 4 Aug 2022 03:13:52 +0000 (23:13 -0400)
committerAmin Bandali <bandali@kelar.org>
Thu, 4 Aug 2022 03:13:52 +0000 (23:13 -0400)
.config/git/config

index 35aba9d..993b9a8 100644 (file)
@@ -1,10 +1,5 @@
 [user]
        name = Amin Bandali
 [user]
        name = Amin Bandali
-       email = bandali@kelar.org
-       signingkey = BE6273738E616D6D1B3A08E8A21A020248816103
-
-[commit]
-       gpgsign = true
 
 # [format]
 #      signoff = true
 
 # [format]
 #      signoff = true
        psf = push --force
        nmam = "!f() { notmuch show --format=raw $1 | git am -; }; f"
        nmam3 = "!f() { notmuch show --format=raw $1 | git am -3 -; }; f"
        psf = push --force
        nmam = "!f() { notmuch show --format=raw $1 | git am -; }; f"
        nmam3 = "!f() { notmuch show --format=raw $1 | git am -3 -; }; f"
+       gnu = "! \
+         git config user.email 'bandali@gnu.org'; \
+         git config user.signingKey 'BE6273738E616D6D1B3A08E8A21A020248816103'; \
+         git config commit.gpgSign true"
+       kelar = "! \
+         git config user.email 'bandali@kelar.org'; \
+         git config user.signingKey 'BE6273738E616D6D1B3A08E8A21A020248816103'; \
+         git config commit.gpgSign true"
+       work = config user.email 'amin.bandali@savoirfairelinux.com'
 
 [color]
        ui = auto
 
 [color]
        ui = auto
@@ -64,5 +68,6 @@
 
 [transfer]
        fsckObjects = true
 
 [transfer]
        fsckObjects = true
+
 [init]
        templateDir = ~/.config/git/template
 [init]
        templateDir = ~/.config/git/template