← 返回命令列表

Linux command

jj-git-push 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Push current bookmark

jj git push

Push specific bookmark

jj git push --bookmark [name]

Push all bookmarks

jj git push --all

Push to specific remote

jj git push --remote [origin]

Push a change by creating a bookmark automatically

jj git push --change [change_id]

Dry run

jj git push --dry-run

Push tracked bookmarks and delete removed ones

jj git push --tracked --deleted

说明

jj git push pushes changes to Git remotes. It translates jj bookmarks to Git branches for pushing. All commits in the range from the remote's current position up to and including the bookmark's target commit are pushed. The --change flag is convenient for pushing a single change without manually creating and managing a bookmark.

参数

-b, --bookmark _NAME_
Bookmark to push (can be repeated).
--all
Push all bookmarks.
--tracked
Push all tracked bookmarks.
--deleted
Push bookmarks that have been deleted locally.
-c, --change _CHANGE_
Push this change by creating a bookmark based on the change ID.
-r, --revisions _REVISIONS_
Push bookmarks pointing to the specified revisions.
--remote _NAME_
Target remote (default: origin).
--dry-run
Show what would be pushed without actually pushing.
-h, --help
Display help information.

FAQ

What is the jj-git-push command used for?

jj git push pushes changes to Git remotes. It translates jj bookmarks to Git branches for pushing. All commits in the range from the remote's current position up to and including the bookmark's target commit are pushed. The --change flag is convenient for pushing a single change without manually creating and managing a bookmark.

How do I run a basic jj-git-push example?

Run `jj git push` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -b, --bookmark _NAME_ do in jj-git-push?

Bookmark to push (can be repeated).