I have a website that I work on locally and is hosted with a web host on another server. How would I use SSH to automatically push my local files to the production server? Would it possible to setup a list of files that are on my local machine that I do not want uploaded and can I have it upload only the files that have changes?
EDIT: Thanks for the replies, I actually just started using git today so I’ll have to look into it.
As Rob Di Marco mentions, rsync is a great way to copy your files. Another option I’ve recently switched to is using git for this purpose, which also works over ssh and gives us version control.