Hi,
I've just started using Git and have never used a versioning system before. I am trying to setup a git repository on my web server and one on my local computer.
I am doing the following on the server (I run the commands in a project folder ~/project):
git init
git add .
git commit -am "Initial Commit"
Then on my laptop i'm using:
git init
git remote add remote_server ssh://[name]@[server].com/~/project
git fetch remote_server
When i've done that the following is displayed
remote: Counting objects: 4, done.
remote: Total 4 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (4/4), done.
However, once this is completed there is nothing in the local folder and if I check the log I get:
fatal: bad default revision 'HEAD'
Any help would be greatly appreciated
Thanks