From 796069963647f13075768480f6e0b91e7614effb Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 24 Jul 2023 16:44:03 -0400 Subject: [PATCH] Add a git alias "git amend". This allows us to generate a new git commit hash without changing the commit contents which is useful for triggering CI workflows. --- ansible/roles/base/files/gitconfig_home | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/base/files/gitconfig_home b/ansible/roles/base/files/gitconfig_home index b8f082c..139287f 100644 --- a/ansible/roles/base/files/gitconfig_home +++ b/ansible/roles/base/files/gitconfig_home @@ -7,6 +7,7 @@ [alias] lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit bh = log --oneline --branches=* --remotes=* --graph --decorate + amend = commit --amend --no-edit [core] excludesfile = ~/.gitignore_global [commit]