# Git

> Git and code hosting platform management — GitHub, GitLab, Codeberg, Forgejo. Zero barrier — install x-cmd and manage repos from the terminal. Use for "git", "github", "gitlab", "repo", "pull request", "code hosting".

- Skill: `x-cmd/git` (Agent Skill)
- Install (CLI): `npx skillmds@latest add x-cmd/git`
- Raw SKILL.md: https://api.skillmd.com/api/skills/x-cmd/git/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: x-cmd (https://skillmd.com/u/x-cmd)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/x-cmd/git

---



# git — skill0

Manage Git repos and code hosting platforms from the command line.

## Quick Start

```bash
# Install x-cmd
eval "$(curl https://get.x-cmd.com)"

# GitHub repo management
x gh repo list
x gh repo clone owner/repo

# Create a pull request
x gh pr create --title "Fix bug" --body "Description"

# Git hooks management
x git hook
```

## What's Available

| Command | Platform | Description |
|---------|----------|-------------|
| `x gh` | GitHub | Full GitHub CLI integration |
| `x gl` | GitLab | GitLab project management |
| `x cb` | Codeberg | Codeberg integration |
| `x git hook` | Local | Git hooks management |

## This skill0 grows

Starting with GitHub basics. Will add:
- GitLab workflows
- Code hosting best practices
- Repo migration guides
- CI/CD integration tips

## Full experience

`x git --help` for all options after installing x-cmd.

## Related

- [repo](../repo/SKILL.md) — discover/manage repos via x repo

