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