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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -