Never allow a situation where a developer can check outcode and the code does not compile – or the unit tests are not all green. This is called “breaking the build” and the punishment in our office is 20 push-ups and fixing broken links for an hour!
Figure: Bad example - wrong process
Figure: Before you start cooking prepare all your ingredients. Before you start coding, "Get Latest" the right way
Figure: Good example - right process ** **
Note: You should have both a Gated-Check-in (GC) and a Continuous Integration (CI) build on every branch.