1

The remote directory already contains a .gitignore file, which I want to overwrite and upload a new one. After doing:

scp -P[portnumber] root@domain.com:path/for/file/ location/of/file/.gitignore

I received the following message:

not a regular file

What do I need to do to copy the "not regular file" as well as overwrite the existing one? I'm assuming this question is very basic considering that I can't find the answer anywhere. Thank you!

Christia
  • 215

1 Answers1

1

I had my location and destination backwards. I changed it to:

scp -P[portnumber] /path/to/.gitignore root@domain.com:/path/to/destination 

That worked!

Christia
  • 215