// Reset resets HEAD to git reference `ref`, passing `args` to the reset command
Reset resets HEAD to git reference `ref`, passing `args` to the reset command
// Reset resets HEAD to git reference ` ref ` passing ` args ` to the reset command
func (gcl *GitCommandLine) Reset(ref string, args ...string) error {
	combinedArgs := append([]string{"reset", string(ref)}, args...)
	err := exec.Command("git", combinedArgs...).Run()
	if err != nil {
		log.Println("Error resetting branch:", err, combinedArgs)
	}
	return err
}
func ( gcl * GitCommandLine ) Reset ( ref string , args ... string ) error { combinedArgs := append ( [ ] string { " " , string ( ref ) } , args ... ) err := exec . Command ( " " , combinedArgs ... ) . Run ( ) if err != nil { log . Println ( " " , err , combinedArgs ) } return err }
Reset resets HEAD to git reference `ref`, passing `args` to the reset command
Reset resets HEAD to git reference ` ref ` passing ` args ` to the reset command