node.js - Nodegit create remote repository and make first push -


many people claim have solved problem in following examples

however after testing these solutions out i'm given error claims remote.setcallbacks(...) function undefined. quick check @ nodegit api documentation

confirms remote.setcallbacks(...) function indeed undefined. tried example code found on nodegit page

but code freezes @ remote.push(...) command. how have people managed push code remote repository using nodegit? on issue i've found far has been disappointment!

unfortunately shooting myself in foot day. reason example code found at

wasn't working because remote github repository wasn't created before running code. i'm guessing execution froze @ remote.push(...) command because push prompt make request repository , not valid response, @ point make request still not valid response. on , on again continue. nodegit promise chain needs establish connection remote repository before can finish. unfortunately nodegit api documentation lacks explanation many offered functions. oh well, important thing solution reached!


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -