---
name: git-commit
description: Create a git commit
argument-hint: "[push-commit]"
allowed-tools: Bash(git *)
enabled: false
source: github:glhewett/public-skills
imported-from: github:glhewett/public-skills
---

Steps:

1. Ensure that we are not on the main branch or the develop branch.
2. Ensure that all files are in the current functionality being work on.
3. Have lint and test scripts run? If not, run them.
4. If there are other files came from other work, then print the files and exit.
5. If all of the change are related to this commit, then create a complete commit message and commit all of the files.
6. If the push-commit option is true, then push to the remote
7. Recommend to deploy to staging with the `/git-merge-into develop` skill
