You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
218 B
15 lines
218 B
3 months ago
|
package misc
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"os/exec"
|
||
|
)
|
||
|
|
||
|
func GitRest() error {
|
||
|
cmd := exec.Command("git", "reset", "--hard", "origin/main")
|
||
|
cmd.Stdout = os.Stdout
|
||
|
cmd.Stderr = os.Stderr
|
||
|
cmd.Stdin = os.Stdin
|
||
|
return cmd.Run()
|
||
|
}
|