Reply to post: Re: Old school vs new school

There once was a biz called Bitbucket, that told Mercurial to suck it. Now devs are dejected, their code soon ejected

Sitaram Chamarty

Re: Old school vs new school

You don't even need a code review system to block history-editing pushes on the server.

Just type in, one-time (on the server repo): git config receive.denyNonFastForwards true

Add "--global" if you want it to be true for all repositories on the server.

Done

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

SUBSCRIBE TO OUR WEEKLY TECH NEWSLETTER

Biting the hand that feeds IT © 1998–2019