gh-pages icon indicating copy to clipboard operation
gh-pages copied to clipboard

How to git pull before these actions (copy, add, commit, push)

Open dimaslanjaka opened this issue 1 year ago • 0 comments

my deploy code, before executing below function, i executing copy (gulp copy)

ghpages.publish(
  destDir,
  {
    branch: 'gh-pages',
    dotfiles: true,
    message: 'update site ' + moment().format('LLL'),
    repo: pkg.repository.url
  },
  resolvePromise
)

how to pull before copying ? should i using spawn git ?, can i doing it with this library, without spawning git again ?

dimaslanjaka avatar Oct 14 '22 02:10 dimaslanjaka