Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows - cp file in Git Bash

Tags:

git

windows

I want to copy /c/xampp/docs/fproject/.git to /c/xampp/docs/finalproject.

I tried this command cp /c/xampp/docs/fproject/.git finalproject, and this message cp:omitting directory 'c/xampp/docs/fproject/.git' is shown but the file wasn't copied.

How can I copy .git file?

like image 884
Sue Avatar asked Sep 08 '15 09:09

Sue


1 Answers

.git is a directory, use cp -r /c/xampp/docs/fproject/.git /c/xampp/docs/finalproject

like image 189
joran Avatar answered Sep 25 '22 11:09

joran