Validation for pipeline branch

Added the necessary git validation checks for branching a release
candidate.
Added check for committed changes not yet pushed