1# Cloning Repositories
2
3## Basic Usage
4
5```bash
6wt c <url> [--remote name]... [--own]
7```
8
9## Remote Configuration
10
11Configure remotes in `~/.config/wt/config.lua`:
12
13```lua
14return {
15 remotes = {
16 github = "git@github.com:myuser/${project}.git",
17 gitlab = "git@gitlab.com:myuser/${project}.git"
18 },
19 default_remotes = {"github"} -- or "prompt" to ask each time
20}
21```
22
23Use `--remote` to add configured remotes:
24
25```bash
26wt c https://github.com/user/repo.git --remote github --remote gitlab
27```
28
29## Contributor vs Own Mode
30
31### Contributor mode (default)
32
33For contributing to others' projects:
34
35- `origin` renamed to `upstream`
36- Selected remotes added from config
37
38```bash
39wt c https://github.com/user/repo.git --remote github
40# origin → upstream
41# github remote added pointing to your fork
42```
43
44### Own mode (`--own`)
45
46For your own projects:
47
48- First selected remote becomes `origin`
49- Additional remotes added as mirrors
50
51```bash
52wt c git@github.com:me/my-project.git --remote github --remote gitlab --own
53# github → origin
54# gitlab added as mirror
55```
56
57