github.com/jcarley/cli@v0.0.0-20180201210820-966d90434c30/commands/git/rm.go (about) 1 package git 2 3 import "os/exec" 4 5 // Rm removes an existing git remote from a git repo in the current working 6 // directory. 7 func (g *SGit) Rm(remote string) error { 8 _, err := exec.Command("git", "remote", "remove", remote).Output() 9 return err 10 }