HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

jj git push — Push to a Git remote. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-git-push>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandjj git pushpushcliinformationmoreremotegit

Problem

How to use the jj git push command: Push to a Git remote. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-git-push>.

Solution

jj git push — Push to a Git remote. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-git-push>.

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):
jj git push --all


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

Code Snippets

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)

jj git push --all

Push all bookmarks pointing to given revisions

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

Context

tldr-pages: common/jj git push

Revisions (0)

No revisions yet.