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!
scp <source> <destination>
. Did you mean to copy fromlocation/of/file/.gitignore
to withinroot@domain.com:path/for/file/
? If so, you should reverse the order of parameters. – dhag Nov 03 '16 at 19:33