I am new to git through the command line and ran into small issues that prevented me from pulling myself out.
I installed the repository on my server and created a local directory using thelucid.com instructions.
on server:
ssh git@example.com mkdir my_project.git cd my_project.git git init --bare git update-server-info
then on the local machine:
cd my_project git init git add * git commit -m "My initial commit message" git remote add origin git@example.com :my_project.git git push -u origin master
When I get to the final command here is "git push -u origin master", the command freezes and freezes and never stops hanging.
git status on local gives me the following:
$ git status On branch master nothing to commit, working directory clean
The git status on the server (inside myproject.git /) gives me:
$ git status fatal: This operation must be run in a work tree
I'm not quite sure where to look further, I tried a bunch of things, but my ignorance is mountainous, and I could use a guide; maybe a wizard, some dwarves and a hobbit if you have spare parts. Any help would be greatly appreciated.
I'm on windows 8.1. Using Cygwin
Thanks.
source share