MCPcopy Index your code
hub / github.com/google/git-appraise / Push

Method Push

repository/git.go:1199–1206  ·  view source on GitHub ↗

Push pushes the given refs to a remote repo.

(remote string, refSpecs ...string)

Source from the content-addressed store, hash-verified

1197
1198// Push pushes the given refs to a remote repo.
1199func (repo *GitRepo) Push(remote string, refSpecs ...string) error {
1200 pushArgs := append([]string{"push", remote}, refSpecs...)
1201 err := repo.runGitCommandInline(pushArgs...)
1202 if err != nil {
1203 return fmt.Errorf("Failed to push the local refs to the remote '%s': %v", remote, err)
1204 }
1205 return nil
1206}

Callers

nothing calls this directly

Calls 1

runGitCommandInlineMethod · 0.95

Tested by

no test coverage detected