[bash] shortened git aliases for wip and clear (#10)

Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/10
This commit is contained in:
Victor Westerlund 2024-12-20 11:05:50 +00:00
parent bc3744f711
commit cd486c996c

View file

@ -21,9 +21,9 @@ cdll () {
} }
# Create standard git WIP commit with timestamps # Create standard git WIP commit with timestamps
alias gitwip="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))\""
# Remove dropped upstream git branches from remote # Remove dropped upstream git branches from remote
alias gitclear="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
alias gitp="git pull origin" alias gitp="git pull origin"
# Shorthand git status" # Shorthand git status"