pub fn checkout(lock: Lock, force: bool) -> Result<()>
Executes the checkout of the specified branch.