<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 12, 2020 at 4:32 PM Paul C. Anagnostopoulos <<a href="mailto:paul@windfall.com">paul@windfall.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">At 9/12/2020 06:00 PM, Mehdi AMINI wrote:<br>
>Hi Paul,<br>
><br>
>If you setup the git hook as indicated here: <<a href="https://llvm.org/docs/GettingStarted.html#git-pre-push-hook" rel="noreferrer" target="_blank">https://llvm.org/docs/GettingStarted.html#git-pre-push-hook</a>><a href="https://llvm.org/docs/GettingStarted.html#git-pre-push-hook" rel="noreferrer" target="_blank">https://llvm.org/docs/GettingStarted.html#git-pre-push-hook</a> ; it'll ask for confirmation before pushing multiple commits.<br>
><br>
>Also the section right before gives the manual recipe before pushing:<br>
><br>
><br>
># Check that the list of commits about to be pushed is correct.<br>
>% git log origin/master...HEAD --oneline<br>
<br>
Yes, I know I should do the 'git log'. Now I just have to force myself into the right habits. I have an alias to make it easier.<br>
<br>
I'm on Windows. Is there a way to set up that hook?<br></blockquote><div><br></div><div>Ah sorry I'm not familiar enough with Windows, maybe someone else can chime in (and then we could update the doc as well).</div><div><br></div></div></div>