- add commits counter to track successful commits
- implement directory existence checks before operations
- add git reset and proper file staging with git rm and git add
- check for actual file changes before committing
- improve error messages and exit conditions
- add success status reporting only when commits are pushed