diff --git a/README.md b/README.md index 1bbb87c0e642d783ac2b52342659b43d4901e8f2..b5db79252f8dbcb61dbd9eae584967bc93d2481e 100644 --- a/README.md +++ b/README.md @@ -62,18 +62,20 @@ chmod +x ~/.local/bin/wt ### Clone workflows -**Contributing to others' projects:** +**Contributing to others' projects (default):** ``` wt c https://github.com/org/repo.git # origin → upstream, your remotes added from config +# Pushes default branch to ALL selected remotes (creates fork copies) ``` **Your own projects:** ``` wt c git@github.com:you/repo.git --own -# First configured remote becomes origin +# First selected remote becomes origin (no push to it) +# Pushes only to additional remotes (mirrors) ``` ### Adding worktrees diff --git a/src/wt/help.lua b/src/wt/help.lua index ec03c790dbe674fb7d8e5433718d968d68da5224..7bee89ea30affc1f66f53ab8dd2389c3f3a99793 100644 --- a/src/wt/help.lua +++ b/src/wt/help.lua @@ -38,8 +38,18 @@ M.COMMAND_HELP = { "Options:", " --remote Add configured remote from ~/.config/wt/config.lua", " Can be specified multiple times", - " --own Treat as your own project: first remote becomes 'origin'", - " (default: 'origin' renamed to 'upstream', your remotes added)", + " --own Treat as your own project (see Push Behavior below)", + "", + "Push Behavior:", + " Contributor mode (default):", + " - 'origin' renamed to 'upstream'", + " - Selected remotes added from config", + " - Pushes default branch to ALL selected remotes (creates fork copies)", + "", + " Own mode (--own):", + " - 'origin' renamed to first selected remote", + " - Additional remotes added from config", + " - Pushes only to ADDITIONAL remotes (mirrors), not the first", "", "Examples:", " wt c https://github.com/user/repo.git",