This commit is contained in:
pika 2025-07-03 16:31:42 +02:00
parent 9ff07e94c2
commit 1b0e5aab3e

View file

@ -524,7 +524,7 @@ __git__() {
fi
case $commit_files in
.) commit_message="wip" ;;
./.) commit_message="wip" ;;
*)
echo "${GREEN}Committed files/folders: ${BOLD}${commit_files[*]}${NC}"
;;
@ -545,6 +545,11 @@ __git__() {
fi
git commit -m "${commit_message:-wip}"
git push
else
echo "${RED}${BOLD}There was something wrong with:${NC}"
echo "${YELLOW}- commit-files '$commit_files'"
echo "or.."
echo "${YELLOW}- commit-message '$commit_message'${NC}"
fi
else
echo "${RED}${BOLD}There are changes on the remote branch. Please pull the latest changes first.${NC}"