in cmd/release/number/main.go [147:157]
func cleanUpIfError(paths []string) {
log.Println("Encountered error so all attempting to restore files")
for _, path := range paths {
err := exec.Command("git", "restore", path).Run()
if err == nil {
log.Printf("If changes were made, restored %s", path)
}
}
log.Println("Finished attempting to restore files")
}