How to use the pull function from simple-git
Find comprehensive JavaScript simple-git.pull code examples handpicked from public code repositorys.
GitHub: PROHACKER21/Mybot
80 81 82 83 84 85 86 87 88 89
if (newCommits.total) { logger.info("🐲: Auto Updating..."); require("child_process").exec( "git stash push --include-untracked && git stash drop" ); await git.pull("origin", "magneum", (err, update) => { if (update && update.summary.changes) { if (update.files.includes("package.json")) require("child_process") .exec("yarn install --ignore-engines")
0
0
1
+ 8 other calls in file
simple-git.default is the most popular function in simple-git (59 examples)