そんなものはないがあると便利。退勤したいが中途半端なときとかブランチを変えたいときなどに。前者はそのまま死ぬかもしれなくてstashだと変更が世に残らないので困る。後者もstashしたことを忘れがち。
これを.gitconfig
に追記してgit afk
でcommitからpushまでできるようにする。
[alias] afk = "! git add -A && git commit -m '[DNM][WIP] afk' && git push"
!
は
you want to run an external command ... you start the command with a ! character. https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases