/push — Git Push
Automates Git workflow to save your notes with meaningful commit messages and push to remote repository.
Usage
Invoke with /push or ask Claude to save/commit your changes.
Basic Usage
code
/push
With Custom Message
code
/push "Completed sprint planning"
What This Skill Does
- •
Stages All Changes
- •Adds all modified files
- •Includes new files
- •Removes deleted files
- •
Creates Smart Commit Message
- •Uses provided message, or
- •Auto-generates from changes:
- •Counts files by folder type (daily, docs, blockers, etc.)
- •Summarizes key modifications
- •Includes date/time stamp
- •
Syncs with Remote
- •Pulls latest changes (rebase)
- •Pushes to remote repository
- •Handles merge conflicts gracefully
Commit Message Format
Automatic Messages
Based on your changes:
code
[2026-01-15] Daily note + 2 blocker updates + 1 decision
With Custom Message
code
[2026-01-15] Completed sprint planning
Git Operations
Standard Flow
- •
git add .- Stage all changes - •
git commit -m "message"- Create commit - •
git pull --rebase- Get remote changes - •
git push- Push to remote
Safety Checks
- •Verify Git repository exists
- •Check for uncommitted changes
- •Ensure remote is configured
- •Never force push without explicit request
Security Considerations
Never Commit
- •
.envfiles or credentials - •API keys or tokens
- •Personal identification
Use .gitignore for
code
.obsidian/workspace* .obsidian/cache .trash/ .DS_Store CLAUDE.local.md