git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[BUG] git pull does not understand --strategy-option

From
DDDavid Deller <david@horizon-nigh.org>
Date
Apr 26, 2011, 14:06 UTC
Message-ID
<BANLkTinFcob1RrOxEDDG+B6UAZGYg-smtg@mail.gmail.com>

Works using short form (-X). Works with 'git merge' using either short or long form.

Apologies, I do not have the current version of Git, but I did not see any mention of a related fix in changelogs.

$ git --version git version 1.7.4.1

$ git pull --strategy=recursive --strategy-option=theirs origin master
error: unknown option `strategy-option=theirs'
usage: git fetch [<options>] [<repository> [<refspec>...]]
   or: git fetch [<options>] <group>
   or: git fetch --multiple [<options>] [(<repository> | <group>)...]
   or: git fetch --all [<options>]
    -v, --verbose         be more verbose
    -q, --quiet           be more quiet
    --all                 fetch from all remotes
    -a, --append          append to .git/FETCH_HEAD instead of overwriting
    --upload-pack <PATH>  path to upload pack on remote end
    -f, --force           force overwrite of local branch
    -m, --multiple        fetch from multiple remotes
    -t, --tags            fetch all tags and associated objects
    -n                    do not fetch all tags (--no-tags)
    -p, --prune           prune remote-tracking branches no longer on remote
    --recurse-submodules  control recursive fetching of submodules
    --dry-run             dry run
    -k, --keep            keep downloaded pack
    -u, --update-head-ok  allow updating of HEAD ref
    --progress            force progress reporting
    --depth <DEPTH>       deepen history of shallow clone
$ git pull --strategy=recursive -X theirs origin master
From ssh://git.internal/repos.git
 * branch            master     -> FETCH_HEAD
Already up-to-date.
David
Next: David Deller
Message 1 of 2 in “[BUG] git pull does not understand --strategy-option”
  1. David DellerApr 26, 2011
  2. David DellerApr 27, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.