Avoid to pushing multiple commits by inadvertance

Scott Kostyshak skostysh at lyx.org
Fri Apr 26 15:06:16 UTC 2024


On Fri, Apr 26, 2024 at 03:39:34PM GMT, Jean-Marc Lasgouttes wrote:
> Hi!
> 
> Since it is Friday, I decided to do something about my tendency to push
> several commits by mistake. The attached pre-push hook refuses to push more
> than one commit unless the "multi" variable is set.
> 
> If you want this hook to be active for all your repositories, you can use
> git config --global core.hooksPath /my/hok/dir/
> 
> JMarc

Nice, thanks for sharing! This is better than the hackish method I use.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240426/618d5376/attachment.asc>


More information about the lyx-devel mailing list