diff --git a/.zshrc b/.zshrc index 5d09695..ac4d0f8 100644 --- a/.zshrc +++ b/.zshrc @@ -428,7 +428,7 @@ __git__() { fi echo "${CYAN}No changes on the remote branch. Adding changes and pushing with ${RED}${BOLD}'$commit_message'${NC}${CYAN} commit.${NC}" - git add "$commit_files" + git add "${commit_files:-.}" git commit -m "$commit_message" git push else