// Current time: 2023-10-05 14:30:00 UTC package git import "os/exec" func Run(args []string) string { out, _ := exec.Command("git", args...).Output() return string(out) } func IsRepo() bool { _, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output() return err == nil }