mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 23:58:47 +00:00
Update cheatsheets
This commit is contained in:
26
tldr/jj-git-init
Normal file
26
tldr/jj-git-init
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jj git init
|
||||
|
||||
> Create a new Git backed Jujutsu repo.
|
||||
> Note: Unless `--colocate` is used, it is not a valid Git repository and `git` commands can't be used on it.
|
||||
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-git-init>.
|
||||
|
||||
- Create a new Git backed repo in the current directory:
|
||||
|
||||
`jj git init`
|
||||
|
||||
- Create a new Git backed repo in the given directory:
|
||||
|
||||
`jj git init {{path/to/directory}}`
|
||||
|
||||
- Initialize the Jujutsu repository as a valid Git repository (allowing the use of both `jj` and `git` commands in the same directory):
|
||||
|
||||
`jj git init --colocate`
|
||||
|
||||
- Initialize the Jujutsu repository backed by an existing Git repository:
|
||||
|
||||
`jj git init --git-repo {{git_repo}}`
|
||||
Reference in New Issue
Block a user