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

Dry run flag for git-pull or git-fetch?

From
Jon Loeliger <jdl@freescale.com>
Date
Mar 5, 2007, 20:41 UTC
Message-ID
<1173127307.23776.37.camel@ld0161-tx32>
Folks,

Is there a "dry-run" flag for git-pull and git-fetch that I missed somewhere?

Specifically, I'm looking for a "git pull -n foo" command that would tell me, as output, the gross-level effect without actually doing the steps. That is, I'd expect something like:

    Fetching from remote "foo"
        URL: git://example.com/pub/foostuff.git
        Remote branch: foo/main into remote/foo/main
        Remote branch: foo/testing into remote/foo/testing
    Merging:
        Remote foo/main into local heads/master

Or something down that line. Basically parrot the config file plus command line effect back at the user as a sanity check first.

Thanks, jdl

Message 1 of 1 in “Dry run flag for git-pull or git-fetch?”
  1. Jon LoeligerMar 5, 2007

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.