My intended goal:
I maintain some files in my local computer, and I also share them with others by putting them on my website. In the past I did this by manually uploading all the files using FTP, every time I did some modifications etc. Now, I am wondering if I can use Git to help me achieve this (by "pushing" the local files to my website server). My server is hosted by Dreamhost.
First, I try this tutorial. I first push my local files to my Github repo, and ssh into my Dreamhost server to
git clone --bare from the Github repo. But I find that git does not transfer my files. So I ignore the tutorial.
ssh into my Dreamhost server to clone directly from Github. My files are all transfered to the server. Then, on my local computer, I
git remote add dreamhost ssh://firstname.lastname@example.org/~/my-project. Then I add some files, and commit, and
git push dreamhost master. And a bunch of errors appear:
As a newbie Git user, I must have missed something. Please help!