create_and_checkout_branch helper
Reset the commit before pushing it