Files
dotfiles/scripts/git-commit-push.sh
T
2024-04-03 21:10:42 -04:00

12 lines
258 B
Bash
Executable File

#!/bin/bash
git add -A
COMMIT_MSG=$(gum input --placeholder "Commit message...")
git commit -m "$COMMIT_MSG"
BRANCH=$(git name-rev --name-only HEAD)
gum confirm "Push?" && git push origin $BRANCH
if [ "${!#}" == "-pr" ]; then
gh pr create --base beta
fi