...
Please note that use of GIT repository allows minimizing costs of unsuccessful implementation even in master code: it allows reverting the code to any previous versions, allowing to revert incorrect changes (so production is back to a working state) if some issues are discovered only in production.
...