Copy .git folder terminal with copy all
- cp command should ignore some files
- How to use 'cp' command to exclude a specific directory?
I want the opposite.
When I copy files, my
.git folder is NOT being copied along with the rest of the files.
I’ve tried the following to no avail:
cp -RLv fetch/* ./ cp -RL fetch/* ./ cp -Rv fetch/* ./ cp -R fetch/* ./ cp -rv fetch/* ./ cp -r fetch/* ./ cp fetch/* ./
Is this possible? I’m okay with using
mv too if I have to.
2 Solutions collect form web for “Copy .git folder terminal with copy all”
The correct command is
cp -r fetch/. ./
*) doesn’t work because it is extended by the shell, and by default it doesn’t include dotfiles/directories.
cp -a fetch fetch-copy