ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli
Samuel Tardieu 6e72b1cfb0 git: add --remote option to clone command
This makes it easier to work with multiple remotes at once while
tracking the default branch of the remote used to create the local
repository:

```shell
$ jj git clone --remote upstream https://github.com/upstream-org/repo
$ cd repo
$ jj git remote add origin git@github.com:your-org/repo
$ jj config set --repo git.fetch upstream
```

In the example above, `upstream` is the repository containing the
reference source code that you might want to patch, while `origin` is
your fork where pull-request will be pushed. The branch `main@upstream`
will be tracked.
2024-09-13 18:14:57 +02:00
..
examples working_copy: pass SnapshotOptions by reference 2024-09-08 04:51:21 +09:00
src git: add --remote option to clone command 2024-09-13 18:14:57 +02:00
testing bookmarks: update some leftover uses of the word "branch" 2024-09-11 19:19:31 -07:00
tests git: add --remote option to clone command 2024-09-13 18:14:57 +02:00
build.rs cli/build-rs: remove metadata command dependency in favor of env vars 2024-09-03 22:31:17 -07:00
Cargo.toml cli/build-rs: remove metadata command dependency in favor of env vars 2024-09-03 22:31:17 -07:00
LICENSE cargo: add LICENSE file to each crate we publish 2023-09-22 21:48:28 -07:00