# Linear Git

> Git operations with Linear. Use for branches, checkout, and PRs. Use when this capability is needed.

- Skill: `tomevault-io/linear-git` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/linear-git`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/linear-git/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/linear-git

---


# Git Operations

```bash
# Checkout branch for issue (creates if needed)
linear-cli g checkout LIN-123

# Show branch name
linear-cli g branch LIN-123

# Create branch without checkout
linear-cli g create LIN-123

# Create GitHub PR from Linear issue
linear-cli g pr LIN-123
linear-cli g pr LIN-123 --draft      # Draft PR
linear-cli g pr LIN-123 --base main  # Specify base branch

# jj (Jujutsu) - show commits with Linear trailers
linear-cli g commits
```

## Context

```bash
# Get issue from current branch
linear-cli context
linear-cli context --output json
```

## Flags

| Flag | Purpose |
|------|---------|
| `--draft` | Create draft PR |
| `--base BRANCH` | Base branch |
| `--output json` | JSON output |

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/finesssee) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

