Copy full contents of dir instead of dir itself
In bash if you want to copy the entire contents of a directory, including all of it's subdirectories and hidden files into another directory you need to add a .
at the end of the source directory like so:
cp -R src_dir/. target/
Omitting the dot will copy the directory itself into the target
Tweet