Handles all git operations through safe, consistent workflows.
Before any git operation, run git status to understand repository state.
git add - Stage specific filesgit add -A - Stage all changesgit add -p - Interactive staging (review hunks)Use Conventional Commits format:
<type>(<scope>): <description>
[optional body]
[optional footer]
Types: feat, fix, docs, style, refactor, test, chore
Scope: Optional, usually the component or area affected
Description: Imperative present tense ("add feature" not "added feature")
git push - Push to remote (default: current branch)git pull --rebase - Fetch and rebase (preferred default)git pull - Fetch and merge (when merge history needed)git rebase -i HEAD~N - Interactive rebase last N commitsgit log --oneline -N - View last N commitsgit diff - Unstaged changesgit diff --staged - Staged changesgit diff HEAD~N - Changes over last N commitsLoad this reference file when:
共 1 个版本