Sue
Sue

Reputation: 125

Windows - cp file in Git Bash

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?

Upvotes: 6

Views: 31401

Answers (1)

joran
joran

Reputation: 2883

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

Upvotes: 16

Related Questions