Jj bookmark push

From sm17p/amfig · View interactive version

Jj bookmark push is an AI agent skill from the GitHub repository sm17p/amfig. Uses jj (Jujutsu VCS) to create or update bookmarks and push to the Git remote. Use when creating a branch/bookmark, moving a bookmark to the current revision, or pushing changes with jj instead of git.

How to use this skill

Skill file

jj bookmark and push

Use jj for version control in this project (not git) when creating branches, updating bookmarks, or pushing.

Rules

Workflow

  1. Make changes; commit with jj commit / jj new (set description when committing).
  2. jj bookmark set <branch-name> so the bookmark points at the revision to publish.
  3. jj git push -b <branch-name>.

Bookmarks are branch-like pointers. Set: jj bookmark set <name>. Set to a revision: jj bookmark set <name> -r <rev>. Use -B to move backwards. Push one: jj git push -b <name>. Push all: jj git push --all. List: jj bookmark list --all.

If push fails

| Symptom | Fix |

| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

| "has no description" | Apply jj-commit to add a proper message, then push. Or move bookmark to a described rev: jj bookmark set <name> -r <rev> -B then push. |

| "Refusing to move bookmark backwards" | Use -B: jj bookmark set <name> -r <rev> -B. |

| Remote bookmark moved / conflict | jj git fetch; resolve conflict or set bookmark to desired rev with -B if needed, then push. |

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.