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

jj git — Run Git-related commands for a `jj` repository. More information: <https://docs.jj-vcs.dev/latest/cl

Submitted by: @import:tldr-pages··
0
Viewed 0 times
relatedcommandruncommandsclijj gitforgit

Problem

How to use the jj git command: Run Git-related commands for a jj repository. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-git>.

Solution

jj git — Run Git-related commands for a jj repository. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-git>.

Create a new Git backed repository:
jj git init


Create a new repository backed by a clone of a Git repository:
jj git clone {{source}}


Fetch from a Git remote:
jj git fetch


Push all tracked bookmarks to Git remote:
jj git push


Push given bookmark to Git remote:
jj git push {{[-b|--bookmark]}} {{bookmark}}

Code Snippets

Create a new Git backed repository

jj git init

Create a new repository backed by a clone of a Git repository

jj git clone {{source}}

Fetch from a Git remote

jj git fetch

Push all tracked bookmarks to Git remote

jj git push

Push given bookmark to Git remote

jj git push {{[-b|--bookmark]}} {{bookmark}}

Context

tldr-pages: common/jj git

Revisions (0)

No revisions yet.