From 595b300a299934c54505c8f86c94595775dcae68 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Mon, 25 Jan 2021 12:12:53 +0100 Subject: [PATCH] Update git config - main branch - signed commit alias - rebase when pulling Closes #27 Signed-off-by: Matej Focko --- playbooks/roles/git/templates/gitconfig.j2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/playbooks/roles/git/templates/gitconfig.j2 b/playbooks/roles/git/templates/gitconfig.j2 index 47dc81f..696be6b 100644 --- a/playbooks/roles/git/templates/gitconfig.j2 +++ b/playbooks/roles/git/templates/gitconfig.j2 @@ -1,3 +1,6 @@ +[alias] + scommit = commit --signoff + [commit] gpgsign = true @@ -14,6 +17,12 @@ [gpg] program = gpg2 +[init] + defaultBranch = main + +[pull] + rebase = true + [user] name = Matej Focko email = {{ git_email }}