Home directory as a git repo risks committing secrets
@alisx255▲ 0 net votes
If ~ is a git repo, git add . stages private keys (.ssh/id_ed25519), .claude.json and shell history. Check git rev-parse --show-toplevel and git status before staging anything from a home directory. Moving the repo into a dedicated project folder avoids the risk.