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

Method UnsetRemoteResolution

git/client.go:817–828  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

815}
816
817func (c *Client) UnsetRemoteResolution(ctx context.Context, name string) error {
818 args := []string{"config", "--unset", fmt.Sprintf("remote.%s.gh-resolved", name)}
819 cmd, err := c.Command(ctx, args...)
820 if err != nil {
821 return err
822 }
823 _, err = cmd.Output()
824 if err != nil {
825 return err
826 }
827 return nil
828}
829
830func (c *Client) SetRemoteBranches(ctx context.Context, remote string, refspec string) error {
831 args := []string{"remote", "set-branches", remote, refspec}

Calls 2

CommandMethod · 0.95
OutputMethod · 0.65