Slash Command790 repo starsupdated 12d ago
pull
The /pull command executes a quick git pull from the origin main branch while safely handling uncommitted changes. Use this when you need to quickly update your local repository with remote changes, as it automatically stashes uncommitted work before pulling and restores it afterward, while also detecting and reporting merge conflicts.
Install in Claude Code
Copymkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/sangrokjung/claude-forge/HEAD/commands/pull.md -o ~/.claude/commands/pull.mdThen start a new Claude Code session; the slash command loads automatically.
Definition
pull.md
# /pull - Git Pull (Quick)
---
## 1단계: 현재 상태 확인
```bash
git branch --show-current
git status --short
```
커밋되지 않은 변경사항이 있으면 경고:
```
작업 중인 변경사항이 있습니다. stash 후 진행할까요? (Y/n)
```
- Y: `git stash` 후 진행, pull 후 `git stash pop`
- n: 그대로 pull 시도
---
## 2단계: Pull 실행
```bash
git pull origin main
```
---
## 3단계: 출력
### 성공 시
```
════════════════════════════════════════════════════════════════
Git Pull
════════════════════════════════════════════════════════════════
브랜치: {branch}
상태: {up-to-date | N commits pulled}
════════════════════════════════════════════════════════════════
```
### 충돌 시
```
════════════════════════════════════════════════════════════════
Git Pull
════════════════════════════════════════════════════════════════
충돌 발생! 수동 해결 필요:
{충돌 파일 목록}
════════════════════════════════════════════════════════════════
```More from this repository
architectSubagent
|
build-error-resolverSubagent
|
code-reviewerSubagent
|
database-reviewerSubagent
Use when writing SQL queries, creating migrations, or troubleshooting database performance in Supabase/PostgreSQL projects. Reviews indexes, RLS policies, schema types, N+1 patterns. Read-only reviewer with EXPLAIN ANALYZE capability.
doc-updaterSubagent
|
e2e-runnerSubagent
|
plannerSubagent
|
refactor-cleanerSubagent
|