From 2cf91cdb16d539d1b7d2220cdfcd84595549aa28 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sat, 4 Nov 2023 07:25:46 +0000 Subject: [PATCH] chore(shell): add a checkpoint commit alias When working on the start of a project its nice to know what you are changing. Or when you are working on a refactor having points to get back to is nice. When we are done we can go and clean up the history so it makes sense, for review, or just give our points more descriptive messages and you don't need to brake your flow when coding. --- site-modules/core/files/oh-my-zsh/custom/git.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/site-modules/core/files/oh-my-zsh/custom/git.zsh b/site-modules/core/files/oh-my-zsh/custom/git.zsh index 7f98b5e..243bd61 100644 --- a/site-modules/core/files/oh-my-zsh/custom/git.zsh +++ b/site-modules/core/files/oh-my-zsh/custom/git.zsh @@ -5,6 +5,7 @@ alias gml="git merge --log" alias gl="git --no-pager log --format=\"%C(red)%h%Creset %s %Cgreen(%cr)%Creset %C(bold blue)<%an>%Creset\" --reverse --max-count=40" alias gap="git add -p" alias gs="gss" +alias checkpoint="git commit -m 'fixup: checkpoint'" function git_get_fetch_url() { git remote show origin -n | awk '/Fetch URL:/{print $3}'