github.com/jcarley/cli@v0.0.0-20180201210820-966d90434c30/commands/git/create.go (about)

     1  package git
     2  
     3  import "os/exec"
     4  
     5  // Initialize a new git repo in the current directory
     6  func (g *SGit) Create() error {
     7  	_, err := exec.Command("git", "init").Output()
     8  	return err
     9  }