How can I prevent git push if local modifications are detected (including untracked files)?

Posted by Clint Modien on Stack Overflow See other posts from Stack Overflow or by Clint Modien
Published on 2010-05-14T00:41:21Z Indexed on 2010/05/14 0:44 UTC
Read the original article Hit count: 298

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about git

Related posts about push