How to transfer a folder from a git repo to a server through psftp in putty?

184 Views Asked by At

I have some of my work available on a git repo which contains 2 folders. Now I want to transfer these 2 folders to a remote server using psftp in putty.

I have tried downloading the folders from git and then pusing them to server by first connecting to it using open "host.name" and then using the following command for sending the entire directory: put -r mydir but this did not work as I was unable to see the directory within the server. How can I do that so that the folder structure is maintained and I don't have to send each file one by one?

0

There are 0 best solutions below