Overview
Branch ops via git_action. Supports troubleshooting merges.
Key Tools
- •
git_action: For all (e.g., "git branch -a", "git checkout -b new"). Params: command (required), repository_directory?.
Usage Instructions
- •List: "git branch -a".
- •Create/switch: "git checkout -b <branch>".
- •Merge: "git merge <branch>".
- •Delete: "git branch -d <branch>".
- •Troubleshoot: "git status" -> "git diff" -> resolve -> merge.
Examples
- •List:
git_actionwith command="git branch --list". - •Merge:
git_actionwith command="git merge main".
Error Handling
- •Conflicts: Use "git status" to identify, edit files, "git add", "git merge --continue".
Reference
troubleshoot-merge.mdfor conflicts.