commands.sh

jj git push

all

Push to a Git remote.

More info →

Options (4)

-b, --bookmarkboolean

Push a bookmark to the given remote (defaults to `git.push` setting)

Example: jj git push {{[-b|--bookmark]}} {{bookmark}} --remote {{remote}}
-N, --allow-newboolean

Push a new bookmark

Example: jj git push {{[-b|--bookmark]}} {{bookmark}} {{[-N|--allow-new]}}
-r, --revisionsboolean

Push all bookmarks pointing to given revisions

Example: jj git push {{[-r|--revisions]}} {{revset}}
-c, --changeboolean

Push changes/commits by creating new bookmarks (Name format is as per `templates.git_push_bookmark` setting, defaults to `"push-" ++ change_id.short()`)

Example: jj git push {{[-c|--change]}} {{revset}}

Examples (7)

Push a bookmark to the given remote (defaults to `git.push` setting)

jj git push [-b|--bookmark] bookmark --remote remote

Push a new bookmark

jj git push [-b|--bookmark] bookmark [-N|--allow-new]

Push all tracked bookmarks

jj git push --tracked

Push all bookmarks (including new bookmarks)

Push all bookmarks pointing to given revisions

jj git push [-r|--revisions] revset

Push changes/commits by creating new bookmarks (Name format is as per `templates.git_push_bookmark` setting, defaults to `"push-" ++ change_id.short()`)

jj git push [-c|--change] revset

Push a revision with the given name

jj git push --named name=revision
made by @shridhargupta | data from tldr-pages