Skip to contentSkip to conversation

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

DISCUSSION Jon Loeliger 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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