Closed aiueo49 closed 9 months ago
gish() {
git add .
# コミット対象のファイルを確認
git status
read "yesno?Commit with this content. OK? (y/N): "
case "$yesno" in
# yes
[yY]*)
read "msg?Input Commit Message: "
git commit -m "$msg"
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
git push origin "$CURRENT_BRANCH"
;;
# no
*)
echo "Quit."
;;
esac
}