UNPKG

react-native-code-push-diff

Version:

This library builds upon the foundational strengths of the react-native-code-push library, adding advanced functionality to precisely identify and manage differences between code-push builds.

13 lines (10 loc) 300 B
import child from 'child_process' import { info } from './utils' export async function checkout(commit: string) { info(`Switch to ${commit}`) child.execSync(`git checkout ${commit}`) } export async function gitRestore() { info('Restore to previous branch') child.execSync('git switch -') }