MCPcopy Create free account
hub / github.com/go-git/go-git / Push

Method Push

repository.go:1214–1216  ·  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

1212// the remote was already up-to-date, from the remote named as
1213// FetchOptions.RemoteName.
1214func (r *Repository) Push(o *PushOptions) error {
1215 return r.PushContext(context.Background(), o)
1216}
1217
1218// PushContext performs a push to the remote. Returns NoErrAlreadyUpToDate if
1219// 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