I've set up my GIT repository on my server using the following in the appropriate folder (the root of my subdomain, git.mydomain.com
):
mkdir foo.git
cd foo.git
git init --bare --shared
This would make the repository available by the URL git.mydomain.com/foo.git
.
On my client, trying to push the commited files to the server using the following: mkdir foo
cd foo
git init
git remote add foo myUser@git.mydomain.com:foo.git
git add readme.txt
git commit -m "foo"
git push foo master
.. entering user password ..
Only results in:
fatal: 'foo.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
However, following a set of different guides, I seem to be unable to resolve this problem. Any suggestions would be highly appreciated, please bear in mind that I'm quite green to GIT.