making sure everything is committed before branching