Files
dotfiles/scripts/git-commit-push.sh
T
2025-06-21 11:11:32 -04:00

14 lines
254 B
Bash
Executable File

#!/bin/bash
COMMIT_MSG=$(gum input --placeholder "Commit message...")
if [ -z "$COMMIT_MSG"]; then
echo "Commit cancelled..."
exit 1
fi
git add -A
gitmoji commit
BRANCH=$(git name-rev --name-only HEAD)
gum confirm "Push?" && git push origin $BRANCH