Git.rebase

From gpsaggese/helpers · View interactive version

Git.rebase is an AI agent skill from the GitHub repository gpsaggese/helpers. Rebase the current branch on master and resolve the conflicts

How to use this skill

Skill file

Goal

conflict, and run git rebase --continue until the rebase finishes

Workflow

Check the Starting State

```bash

> ls -a .git | grep -E "rebase-merge|rebase-apply"

```

```bash

> git branch --show-current

```

Start the Rebase

```bash

> i git_rebase_master

```

error to the user

Resolve the Conflicts

```bash

> git diff --name-only --diff-filter=U

```

Ignore the `helpers_root` Conflict

working tree:

```bash

> git add helpers_root

```

Resolve the Other Conflicts

.claude/skills/git.merge_conflicts/SKILL.md

git rebase --continue below

and <TARGET> is master

Continue the Rebase

```bash

> GIT_EDITOR=true git rebase --continue

```

## Resolve the Conflicts

Constraints

needs --force-with-lease

Verification

```bash

> ls -a .git | grep -E "rebase-merge|rebase-apply"

```

```bash

> git grep -n '^<<<<<<<\|^>>>>>>>'

```

rebase:

```bash

> git status

```

```bash

> git log --oneline -1 master

> git merge-base --is-ancestor master HEAD && echo OK

```

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.