PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@lerna/publish/lib
Просмотр файла: git-checkout.js
"use strict";
const log = require("npmlog");
const childProcess = require("@lerna/child-process");
module.exports.gitCheckout = gitCheckout;
/**
* Reset files modified by publish steps.
* @param {string[]} stagedFiles
* @param {{ granularPathspec: boolean; }} gitOpts
* @param {import("@lerna/child-process").ExecOpts} execOpts
*/
function gitCheckout(stagedFiles, gitOpts, execOpts) {
const files = gitOpts.granularPathspec ? stagedFiles : ".";
log.silly("gitCheckout", files);
return childProcess.exec("git", ["checkout", "--"].concat(files), execOpts);
}
Выполнить команду
Для локальной разработки. Не используйте в интернете!