user1383163 user1383163 - 2 months ago 7x
Git Question

How do i remove a superfluous parent directory

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/