LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

jj-git-push

pushes changes to Git remotes

TLDR

Push current bookmark
$ jj git push
copy
Push specific bookmark
$ jj git push --bookmark [name]
copy
Push all bookmarks
$ jj git push --all
copy
Push to specific remote
$ jj git push --remote [origin]
copy
Push a change by creating a bookmark automatically
$ jj git push --change [change_id]
copy
Dry run
$ jj git push --dry-run
copy
Push tracked bookmarks and delete removed ones
$ jj git push --tracked --deleted
copy

SYNOPSIS

jj git push [options]

DESCRIPTION

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.

PARAMETERS

-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.

CAVEATS

Requires a bookmark on the changes to push. The remote must already be configured. Empty revisions produce a warning when bookmarked.

HISTORY

jj git push is part of Jujutsu, enabling collaboration through Git hosting services.

SEE ALSO

jj(1), jj-git(1), git-push(1)

Copied to clipboard
Kai