From 4701779ec5fb2cdb44523f1f756a596b41b73f60 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Tue, 6 May 2025 13:40:28 +0000 Subject: [PATCH] feat(git): add 'gitt' alias for new WIP git tag with optional comment (#17) Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/17 --- .bash_aliases | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index bb3d7d6..2fa000b 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -22,6 +22,8 @@ cdll () { # Create standard git WIP commit with timestamps alias gitw="git commit -m \"wip: $(date +%Y-%m-%dT%H:%M:%S%z) ($(date +%s))\"" +# Create a git WIP tag with the current timestamp. Prompt user for tag comment. +alias gitt="git tag -a 'wip-$(date +%s)'" # Remove dropped upstream git branches from remote alias gitc="git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D" # Shorthand git pull origin