Skip to content

Commit 173ae59

Browse files
committed
IOS-5364 Updated cpp command
1 parent 43b41e7 commit 173ae59

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.claude/commands/cpp.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1-
Commit, push, pull request
1+
Commit, push, pull request
2+
3+
## Usage
4+
```
5+
/cpp [in branch <branch-name>]
6+
```
7+
8+
## Description
9+
Commits the current changes, pushes to remote, and creates a pull request.
10+
11+
## Optional Arguments
12+
- `in branch <branch-name>` - Specifies the target branch to use for the commit, push, and PR
13+
14+
## Branch Handling
15+
When a branch name is provided:
16+
1. **Branch doesn't exist locally or remotely**: Creates a new branch with the specified name
17+
2. **Branch exists locally**: Switches to that branch
18+
3. **Branch exists only remotely**: Checks out the remote branch locally
19+
20+
## Examples
21+
```bash
22+
# Commit, push, and PR on current branch
23+
/cpp
24+
25+
# Commit, push, and PR on specific branch (creates if doesn't exist)
26+
/cpp in branch ios-5364-add-claude-to-gh-actions
27+
28+
# Commit, push, and PR on existing branch
29+
/cpp in branch develop
30+
```

0 commit comments

Comments
 (0)