Running
git pull origin master
outputs
fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly.
I've tried running
git remote add origin username@host:/var/www/public/git-test/.git
git pull origin master
and it seemed to work, but it output Already up-to-date
and the file was not updated; committing and pushing from my localhost was successfull, though.
The .git
files and the file I am trying to update are in the same directory and I have no bare repository, if that matters.
Why wasn't the file updated?
Am I doing git remote add origin
correctly? Is there a way to add this repository as local?