Hook
workflow
✓ Verified
⭐ Featured
Free
Session Auto-Commit
Automatically commits and pushes changes when an AI coding session ends so nothing is lost.
4.7(89 reviews)
38,400 installs
by GitHub
About
Listens for the sessionEnd event, detects uncommitted changes, stages everything, creates a timestamped commit, and pushes to the remote. Safe by default — only acts when there are real modifications, never force-pushes, and never commits if you're in a detached HEAD state.
Tags
gitauto-commitsessionsafety
Hook Configuration (hooks.json)
{
"hooks": [
{
"event": "sessionEnd",
"command": ".github/hooks/session-auto-commit/auto-commit.sh",
"timeout": 30,
"env": {
"AUTO_COMMIT_PREFIX": "auto-commit",
"AUTO_PUSH": "true"
}
}
]
}Triggers:sessionEndmode: log
Install
# Install hook into your project: mkdir -p .github/hooks/session-auto-commit curl -fsSL "https://raw.githubusercontent.com/github/awesome-copilot/main/hooks/session-auto-commit/hooks.json" \ -o .github/hooks/session-auto-commit/hooks.json
G
GitHub
@github