885 B
885 B
Git add, commit, and push. Run this workflow:
- Run
git statusto see what's dirty/untracked. - Run
git diff --statfor a summary of changes. - If there are untracked files that look unintentional (build artifacts, temp files, secrets), ask the user before staging them.
- If there are mixed concerns (changes to unrelated files), ask whether to commit everything together or split into separate commits.
- Stage all intended files with
git add. - Write a concise commit message matching the repo's existing style (check
git log --oneline -5for convention). Use conventional commits if the repo uses them. - Commit.
- Push to the current tracking branch. If no upstream is set, ask which remote/branch to push to.
Be interactive — ask questions when something looks off, but don't over-ask on straightforward cases. If everything is clean and obvious, just do it.