Added warning whenever git commit was not executed successfully.