scripts/sync-remotes.js
async function synchRepo(remote, pathname) {
  const cmd = `git subtree push --prefix=${pathname} ${remote} master`;

  try {
    await exec(cmd);
    logger.log(`Synched master of ${pathname}`);
  } catch (error) {
    throw error;
  }
}
async function synchRepo(remote, pathname) {
  const cmd = `git subtree push --prefix=${pathname} ${remote} master`;

  try {
    await exec(cmd);
    logger.log(`Synched master of ${pathname}`);
  } catch (error) {
    throw error;
  }
}
async function synchRepo ( remote , pathname ) { const cmd = ` ${ pathname } ${ remote } ` ; try { await exec ( cmd ) ; logger . log ( ` ${ pathname } ` ) ; } catch ( error ) { throw error ; } }
Synch the current master with the remote
@param {string} remote The remote name.
@param {string} pathname The local pathname.
Synch the current master with the remote