79143281

Date: 2024-10-31 02:08:03
Score: 1
Natty:
Report link

Here's a git alias to get or set aliases:

git config --global alias.alias '!git config --global alias."$@" #'

Usage:

git alias st 'status --short'
git alias st
# outputs "status --short"

And here's an alias to unset aliases:

git alias unalias '!git config --global --unset alias."$1" #'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Scorbie