summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-06-19 00:52:01 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-06-19 00:52:01 +0400
commit0c748624f05df480060be3c6c3a07ace310866d0 (patch)
tree1cb5ea5cfbc30b864d3c1c5b62c906b3444c6863
parent5a339d2f6c9fda89b586f8c4839d466e491076b5 (diff)
feat: enhance git config with aliases and GPG signing
- Add common aliases (co, br, ci, st) for shorter commands - Rewrite pushall to work reliably across all remotes - Enable GPG signing for commits and tags - Set OpenPGP as the preferred signing format - Add placeholder for signing key under [user]
-rw-r--r--config/git/gitconfig19
1 files changed, 18 insertions, 1 deletions
diff --git a/config/git/gitconfig b/config/git/gitconfig
index 976d768..8a69554 100644
--- a/config/git/gitconfig
+++ b/config/git/gitconfig
@@ -1,9 +1,26 @@
[init]
defaultBranch = master
+
[pager]
branch = false
+
[alias]
- pushall = !git remote | xargs -L1 git push --all
+ co = checkout
+ br = branch
+ ci = commit
+ st = status
+ pushall = "!for r in $(git remote); do git push --all \"$r\"; done"
+
[user]
email = suleyman@farajli.net
name = Suleyman Farajli
+ # signingkey = <to be set manually>
+
+[commit]
+ gpgSign = true
+
+[tag]
+ gpgSign = true
+
+[gpg]
+ format = openpgp