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

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - On Gitbash - Bower : ENOGIT git is not installed or not in the PATH -