feat(git): add 'gitt' alias for new WIP git tag with optional comment (#17)

Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/17
This commit is contained in:
Victor Westerlund 2025-05-06 13:40:28 +00:00
parent 076d50ec63
commit 4701779ec5

View file

@ -22,6 +22,8 @@ cdll () {
# Create standard git WIP commit with timestamps # Create standard git WIP commit with timestamps
alias gitw="git commit -m \"wip: $(date +%Y-%m-%dT%H:%M:%S%z) ($(date +%s))\"" 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 # Remove dropped upstream git branches from remote
alias gitc="git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D" alias gitc="git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D"
# Shorthand git pull origin # Shorthand git pull origin