Skip to content

Commit

Permalink
feat: git reset (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart authored Nov 6, 2023
1 parent 2fc2917 commit b5a8a6a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/git/doGitReset.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import spawn from "../utils/spawn.js";
import gitLogger from "./utils/gitLogger.js";

export default async function ({
resetMode,
ref,
}: {
resetMode: "hard" | "soft" | "mixed";
ref: string;
}) {
await spawn("git", ["reset", `--${resetMode}`, ref], gitLogger);
}

0 comments on commit b5a8a6a

Please sign in to comment.