UNPKG

ice.fo.utils

Version:

6 lines (4 loc) 152 B
const { execSync } = require('child_process'); module.exports = function undoLatestCommits(step = 1) { return execSync('git reset --soft HEAD^'); };