I just got hold of an openSuse 10.3 VPS. I really don't know much about Unix and SSH and this stuff but I'd like to use my server to host a GIT repository. This seems simple enough to me...
Here is what I did:
I SSHed into my server and installed GIT (I guess), simply by entering
# yast --install git
Then some magic happened and obviously, git was installed. Great! I also created a user:
# git config --global user.name ...
# git config --global user.email ...
Then, I copied the source code from my local disk to the server. Since I don't really know where to put such stuff on an openSuse, I chose home/myRepository
Next, I created a repository there and added the existing files, using the following commands:
# cd home/myRepository
# git init
# git add .
# git commit -m 'Add code'
As far as I can tell, everything worked. E.g. git log shows my commit.
No here are my questions: 1) Did I do everything fine so far? Would home/fooBar be an appropriate directory to hold a repository? 2) More important: How on earth do I access the repo from my local machine= I wanted to create a local clone with Xcode 4, using the URL
git://123.456.789.012//home/myRepository
but this obviously didn't work. I have no clue, wether this URL is correct. Also, do I have to create a new user, to access the repository from my local machine?
You see, I've quite a lot of questions and I'm obviously lacking some basics. I googled for quite some time but I didn't find a guide suitable for my problems. Any answers and helpful links would be highly appreciated. Thanks!