I have a directory structure like this
i actually want the repo to be the following:
how do i remove foo without having to delete and recreate the repository?
You can use
git mv -> Move or rename a file, a directory, or a symlink
git mv source_dir/ destination_dir/