News for hackers. Stuff that matters.
Re:How to undo almost anything with Git by yawaramin on Monday June 08, 2015 @09:17PM (#9683534)
> Everything I've seen or heard of is PullRequests, code-review, +1, then merge to master.

That won't help you when you think you're pushing to and from your own branch, but are accidentally on develop and force-pushing to the remote develop branch.

Re:How to undo almost anything with Git by matwood on Tuesday June 09, 2015 @08:47AM (#9685556)
That's where locking down the branches and preventing rebases comes into play. It prevents someone from accidentally doing what you describe.

Most people only know github and I don't think they expose this locking feature in their UI which is a shame.

Re:How to undo almost anything with Git by detaro on Monday June 08, 2015 @10:22PM (#9683736)
But if your process is only merging PRs, then locking the master against pushes as he proposes would create no further issues, preventing that from happening. If you need to modify the master directly, it would complicate things.