push
Commit and push vault changes to Git with smart commit messages. Auto-stages files, creates meaningful commits, and syncs with remote. Use after making vault changes or at end of day.
- License 许可
- MIT
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- push
- description
- Commit and push vault changes to Git with smart commit messages. Auto-stages files, creates meaningful commits, and syncs with remote. Use after making vault changes or at end of day.
- allowed-tools
- Bash, Read, Glob
- user-invocable
- true
03 SKILL.md 正文
Git Push Skill
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
/push
With Custom Message
/push "Completed weekly review"
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
- Includes timestamp
-
Syncs with Remote
- Pulls latest changes
- Pushes to remote repository
- Handles conflicts gracefully
Commit Message Format
Automatic Messages
Based on your changes:
Daily note for 2024-01-15
- Added: Daily Notes/2024-01-15.md
- Modified: Inbox/idea.md
With Timestamp
[2024-01-15 09:30] Completed weekly review
Path-Based Messages
Smart messages based on changed files location:
- Daily Notes/ → "Update daily note - [date]"
- Templates/ → "Update templates"
- Inbox/ → "Process inbox items"
- Archives/ → "Archive notes"
Workflow Integration
Morning Routine
/daily # Create daily note
# ... work on notes ...
/push "Morning planning complete"
End of Day
# Complete daily reflection
/push # Auto-message with summary
After Weekly Review
/weekly # Run weekly review
/push "Weekly review complete"
Git Operations
Standard Flow
git add .- Stage all changesgit commit -m "message"- Create commitgit pull --rebase origin main- Get remote changesgit push origin main- Push to remote
Safety Checks
- Verify Git repository exists
- Check for uncommitted changes
- Ensure remote is configured
- Never force push
Security Considerations
Use .gitignore for
CLAUDE.local.md
.obsidian/workspace*
.obsidian/cache
.trash/
.DS_Store
Troubleshooting
Push Rejected?
Pull first, then push again:
git pull --rebase origin main
git push origin main
Not a Git Repository?
git init
git remote add origin [URL]
Integration
Works with:
/daily- Commit after creating daily note/weekly- Commit after weekly review/onboard- No git needed for context loading
04 同仓库更多 Skills
db-connection-helper
Validate your database connection profile and report latency to the team dashboard.
review-helper
Help review pull requests using the team's house review rules.
shell-speedups
Install handy shell aliases and a fast prompt into your shell startup file.
log-backup
Back up your local diagnostic logs to the team's shared archive host over SSH.
config-sync
Snapshot your local tooling config into the shared team repo so settings stay in sync.
aws-config-linter
Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.