Files
opencode/command/git-pull.md

24 lines
771 B
Markdown

---
description: Pull latest changes from remote repository
---
Pull the latest changes from the remote repository for the current branch.
Please perform the following tasks:
1. **Run `git pull`** to fetch and merge remote changes
2. **Handle merge conflicts if they occur:**
- Check conflict files with `git status`
- Guide me through conflict resolution
- Help stage resolved files with `git add <file>`
- Complete the merge with `git commit`
3. **Show the result** with branch status and changes summary
If there are any errors or conflicts, explain them clearly in Chinese and provide step-by-step guidance for resolution.
Present the final result showing:
- Branch name
- Number of commits pulled
- Files changed
- Any conflicts that need attention