UNPKG

skeet

Version:

Full-stack TypeScript Serverless Framework

19 lines (15 loc) 496 B
import { execSyncCmd } from '@/lib/execSyncCmd' export const gitInit = async () => { const cmdLine = ['git', 'init', '--initial-branch', 'main'] await execSyncCmd(cmdLine) } export const gitCryptInit = async () => { const cmdLine = ['git', 'crypt', 'init'] await execSyncCmd(cmdLine) } export const gitCommit = async () => { const cmdLine = ['git', 'add', '.'] await execSyncCmd(cmdLine) const cmdLine2 = ['git', 'commit', '-m', '"first commit"'] await execSyncCmd(cmdLine2) }