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

Method Push

repository.go:1223–1225  ·  view source on GitHub ↗

Push performs a push to the remote. Returns NoErrAlreadyUpToDate if the remote was already up-to-date, from the remote named as FetchOptions.RemoteName.

(o *PushOptions)

Source from the content-addressed store, hash-verified

1221// the remote was already up-to-date, from the remote named as
1222// FetchOptions.RemoteName.
1223func (r *Repository) Push(o *PushOptions) error {
1224 return r.PushContext(context.Background(), o)
1225}
1226
1227// PushContext performs a push to the remote. Returns NoErrAlreadyUpToDate if
1228// the remote was already up-to-date, from the remote named as

Callers

nothing calls this directly

Calls 1

PushContextMethod · 0.95

Tested by

no test coverage detected