wip
This commit is contained in:
parent
9ff07e94c2
commit
1b0e5aab3e
1 changed files with 6 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue