This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Find all Git repositories in the current directory and its subdirectories | |
git_repos=$(find . -type d -name '.git') | |
# Initialize an empty array to store directories to delete | |
dirs_to_delete=() | |
for repo in $git_repos; do | |
# Get the directory containing the `.git` directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const crypto = require("crypto"); | |
const readline = require("readline"); | |
const fs = require("fs"); | |
const path = require("path"); | |
const os = require("os"); | |
const hdKey = require("hdkey"); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout, |