MCPcopy Create free account
hub / github.com/cli/cli / DeleteLocalTag

Method DeleteLocalTag

git/client.go:652–663  ·  view source on GitHub ↗
(ctx context.Context, tag string)

Source from the content-addressed store, hash-verified

650}
651
652func (c *Client) DeleteLocalTag(ctx context.Context, tag string) error {
653 args := []string{"tag", "-d", tag}
654 cmd, err := c.Command(ctx, args...)
655 if err != nil {
656 return err
657 }
658 _, err = cmd.Output()
659 if err != nil {
660 return err
661 }
662 return nil
663}
664
665func (c *Client) DeleteLocalBranch(ctx context.Context, branch string) error {
666 args := []string{"branch", "-D", branch}

Callers 3

deleteRunFunction · 0.80

Calls 2

CommandMethod · 0.95
OutputMethod · 0.65