It might be a good idea to set up a post receive hook that does git pull on each new revision, so it has all the commits, and if it detects a force push, it sends an email with last commit's hash to the list and to the commiter.
-- Кирилл Елагин On Tue, Apr 8, 2014 at 10:27 AM, Alexander Kjeldaas <[email protected]>wrote: > > It is possible to add a post receive hook that sends out a big fat warning. > > Alexander > > > On Tue, Apr 8, 2014 at 8:14 AM, Vladimír Čunát <[email protected]> wrote: > >> On 04/07/2014 07:30 PM, Shea Levy wrote: >> >>> I had my remotes set up wrong and accidentally force pushed >>> >> >> I see it happens occasionally... is it possible on GitHub to forbid >> force-pushes? I don't know about any use case of non-fast-forward pushing >> on the central repo. >> >> Vlada >> >> >> >> _______________________________________________ >> nix-dev mailing list >> [email protected] >> http://lists.science.uu.nl/mailman/listinfo/nix-dev >> >> > > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev > >
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
