You could write a function that does what you need to have done, and add it to org-clock-out-hook
. Perhaps something like this (untested):
(defun my-on-org-clock-out ()
(shell-command "commit-everything.sh"))
(add-hook 'org-clock-out-hook 'my-on-org-clock-out)
Likewise, there is a hook called org-clock-in-hook
.