// List all your tracked repositoriesawait shadowgit.list_repos()// View recent commits in a projectawait shadowgit.git({ repo: "my-project", command: "log --oneline -10"})// See what changed in the last hourawait shadowgit.git({ repo: "my-project", command: "diff HEAD~5 HEAD --stat"})// Find when a bug was introducedawait shadowgit.git({ repo: "my-project", command: "bisect start HEAD HEAD~20"})
Make sure you’re using the exact repository name from ShadowGit.
Copy
Ask AI
// First, list all repos to get exact namesconst repos = await shadowgit.list_repos()// Returns: [{ name: "my-project", path: "/Users/you/code/my-project" }]// Then use the exact nameawait shadowgit.git({ repo: "my-project", // Must match exactly command: "log -1"})