The remote directory already contains a .gitignore file, which I want to overwrite and upload a new one. After doing:
scp -P[portnumber] [email protected]: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/.gitignoreto within[email protected]:path/for/file/? If so, you should reverse the order of parameters.