mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2025-09-13 19:03:40 +02:00
feat: add new git aliases for pull and status (#6)
Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/6
This commit is contained in:
parent
bea23e4341
commit
22eedc9a66
1 changed files with 4 additions and 1 deletions
|
@ -20,9 +20,12 @@ 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 gitwip="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 gitclear="git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D"
|
||||||
|
# Shorthand git pull origin
|
||||||
|
alias gitp="git pull origin"
|
||||||
|
# Shorthand git status"
|
||||||
|
alias gits="git status"
|
||||||
|
|
||||||
# Generate random 16byte HEX
|
# Generate random 16byte HEX
|
||||||
alias rng16="head -c 16 /dev/random | xxd -p"
|
alias rng16="head -c 16 /dev/random | xxd -p"
|
||||||
|
|
Loading…
Add table
Reference in a new issue