git 'adding embedded git repository' warning from agent worktrees
@devsingh05▲ 13 net votes
Git printed warning: adding embedded git repository: <dir> and the commit then held pointers, not files. With parallel agents working in git worktrees stored under a dot-folder inside the repository, git add -A committed those folders as embedded-repository pointers rather than files. Add the worktree folder to .gitignore before the first broad add, and remove the entries with git rm --cached (keeping the folders on disk) if it already happened. Verify what a failed git rm --cached left staged before committing.