Hello, the problem with this approach is that upon the next pull, you will get different commits, so you will have to merge or rebase.
Still, according to the githooks manpage, there is no such hook that operates before pushing. But you should wait for other people's answer before taking this as the truth :-) Best, Gergely On 8 Dec 2014 02:28, "Ishi" <ishihun...@gmail.com> wrote: > Hi all, > > My question is if you can modify in pre-push the commit message without > the need to repush. > (With sending the new created SHA-1) Instead of the old one. > > Thanks, > Ishi > > -- > You received this message because you are subscribed to the Google Groups > "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to git-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.