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

Re: How to figure out what 'git push' would do?

From
David Kastrup <dak@gnu.org>
Date
Aug 5, 2007, 11:42 UTC
Message-ID
<85ps228ax2.fsf@lola.goethe.zz>
In-Reply-To
<267CDD46-549B-4BFE-B993-80CD1CFE75D8@zib.de>
Steffen Prohaska <prohaska@zib.de> writes:
Show 5 quoted lines
> How can I check what a 'git push' would do, without
> actually doing it?
>
> Is there something like 'git push --dry-run', similar
> to 'rsync --dry-run'?
Wel, you could put

#!/bin/sh cat >/tmp/dryrun exit 1

into
$GIT_DIR/hooks/pre-receive
on the receiving side.  Or maybe the update hook.
-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Previous: Steffen ProhaskaNext: Alex Riesen
Message 2 of 6 in “How to figure out what 'git push' would do?”
  1. Steffen ProhaskaAug 5, 2007
  2. David KastrupAug 5, 2007
  3. Alex RiesenAug 5, 2007
  4. Julian PhillipsAug 5, 2007
  5. Steffen ProhaskaAug 5, 2007
  6. Alex RiesenAug 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.