How can I prevent git push if local modifications are detected (including untracked files)?
- by Clint Modien
Sometimes someone on our team does a git push and breaks the build because his local build works but he has forgotten to commit all his local modifications and untracked files to git before he pushes.
I'd like to prevent this... I poured over the docs for an hour or so today and couldn't find anything built in.
Does anyone have any solutions?