git - Nodegit Remote Push with --force -
i'm using single github repo ci work. app receives zip file, create repo locally, commit files master branch, add origin remote , try push github.
since files exist in github repo, error, "[error: cannot push because reference trying update on remote contains commits not present locally.]"
does nodegit support pushing remote --force flag overwrite everything? i've looked through docs , can't find it.
thanks! jeff
nodegit supports passing refspecs remote. force push master adding +
front of refspec.
example: remote.push('+refs/heads/master:remotes/origin/master', null, mysignature, mymessage)
Comments
Post a Comment