Skip to content

Instantly share code, notes, and snippets.

@JonasRothmann
JonasRothmann / bun-workspaces.ts
Created September 30, 2023 14:51
bun-workspaces
import { Command } from "commander";
import { readdir } from "node:fs/promises";
const program = new Command();
const path = "./package.json";
const file = Bun.file(path);
const text = await file.text();
const json = JSON.parse(text);
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
<img src="http://oi64.tinypic.com/wmo0vd.jpg" alt="" style="opacity: 0"/>
<img src="http://oi68.tinypic.com/1444azd.jpg" alt="" style="opacity: 0" />