We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rideRTD/RTD-DevOps'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
git-help.md•1.13 kB
# Git Help
Provide contextual git help based on what the developer needs.
## Common Scenarios
### "I made changes and want to save them"
1. `git status` - see what changed
2. `git add <files>` - stage changes
3. `git commit -m "message"` - save with message
### "I want to undo my changes"
- Unstaged changes: `git checkout -- <file>`
- Staged changes: `git reset HEAD <file>`
- Undo last commit (keep changes): `git reset --soft HEAD~1`
- Undo last commit (discard): `git reset --hard HEAD~1`
### "I need to switch branches"
- See branches: `git branch -a`
- Switch: `git checkout branch-name`
- Create and switch: `git checkout -b new-branch`
### "I have a merge conflict"
1. Open conflicted files
2. Look for `<<<<<<<`, `=======`, `>>>>>>>`
3. Choose which code to keep
4. Remove the conflict markers
5. `git add <file>` then `git commit`
### "I need to update from remote"
- Fetch changes: `git fetch origin`
- Pull into current branch: `git pull origin branch-name`
- Rebase instead of merge: `git pull --rebase origin main`
Use `git_status_explained` and `git_branch_explained` tools to help explain the current state.