
遠端目錄已包含一個 .gitignore 文件,我想覆蓋該文件並上傳一個新文件。做完後:
scp -P[portnumber] [email protected]:path/for/file/ location/of/file/.gitignore
我收到以下訊息:
not a regular file
我需要做什麼才能複製“非常規文件”並覆蓋現有文件?考慮到我在任何地方都找不到答案,我認為這個問題非常基本。謝謝你!
答案1
我的位置和目的地倒退了。我把它改為:
scp -P[portnumber] /path/to/.gitignore [email protected]:/path/to/destination
成功了!