I have a website on a shared host which support git. Working with FTP is getting too difficult so I am planning to use git in my workflow. I just know basic push, pull, commit commands. I would like to set-up git but not being able to work it out. Here is what I tried till now.
ssh user@host
cd ~/mysitedirectory/html
git init
and it says git repo initialised. On my local computer, I did this
cd my/local/path
git init
git remote add origin ssh://user@host:/chroot/somedir/mysiteditectory/html/.git
git pull origin master
And it asks for password, which I provide. Then it throws following error.
fatal: Couldn't find remote ref master *-iMac:PB_Source *$ fatal: The remote end hung up unexpectedly
I am trying it from last 2-3 hours. Can't find solution. Please guide me what am I doing wrong.