code: func (r *Repository) DeleteBranch(name string) error {
  	cfg, err := r.Storer.Config()
  	if err != nil {
  		return err
  	}
  
  	if _, ok := cfg.Branches[name]; !ok {
  		return ErrBranchNotFound
  	}
  
  	delete(cfg.Branches, name)
  	return r.Storer.SetConfig(cfg)
  }
docs: // DeleteBranch delete a Branch from the repository and delete the config