# Problem with git remote repository

**URL:** <https://www.ruby-forum.com/t/problem-with-git-remote-repository/176490>\
**Category:** Rails\
**Created:** [October 1, 2009, 9:40am UTC](https://www.ruby-forum.com/t/problem-with-git-remote-repository/176490 "2009-10-01T09:40:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratnik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a3d4f5/32.png) [@ratnik](https://www.ruby-forum.com/u/ratnik)\
**Post date:** [October 1, 2009, 9:40am UTC](https://www.ruby-forum.com/t/problem-with-git-remote-repository/176490/1 "2009-10-01T09:40:11Z")

</div>

Hello

I have a problem accessing remote git repository located  
on Linux machine in my local network.

I performed the following steps:

- firstly setup the remote repository on my Linux machine:

$ mkdir /root/projects/test/.git  
$ cd /root/projects/test/.git  
$ git init —bare  
Initialized empty Git repository in /root/projects/test/.git

- on my local Windows XP machine:

$ cd my\_project  
$ git init  
$ git add \*  
$ git commit -m “My initial commit message”  
$ git remote add origin [root@192.168.1.2](mailto:root@192.168.1.2):projects/test/.git  
$ git push origin master

Git successfully connected to [root@192.168.1.2](mailto:root@192.168.1.2) and requested to enter  
the password for the root user.  
I entered the correct password and after that received the following  
error message:

git: ‘projects/test/.git’ is not a git-command. See ‘git –help’  
fatal: The remote end hung up unexpectedly

ssh works fine, I can connect to Linux machine using Putty without  
problems.  
I also stoped the firewall and tried to use different paths in origin  
projects/test,  
root/projects/test/.git and other combinations, but always get the  
same error.  
My git version is 1.6.3.0.

## Please help to solve this problem.

Thank you in advance.
