// Checkout checks out git reference `ref`
Checkout checks out git reference `ref`
// Checkout checks out git reference ` ref `
func (gcl *GitCommandLine) Checkout(ref string) error {
	out, err := exec.Command("git", "checkout", ref).CombinedOutput()
	if err != nil {
		log.Println("error checking out branch:", string(out))
	}
	return err
}
func ( gcl * GitCommandLine ) Checkout ( ref string ) error { out , err := exec . Command ( " " , " " , ref ) . CombinedOutput ( ) if err != nil { log . Println ( " " , string ( out ) ) } return err }
Checkout checks out git reference `ref`
Checkout checks out git reference ` ref `