On 22 November 2012 22:16, ankit sachan <ankit.sac...@gmail.com> wrote:
> Hi, I am a newbie with git. I have a linux server(centos 6.2) where i store
> code and host my website.

> We all work from windows machine using cygwin. I am wondering, how to
> quickly set-up a git repo on server and then  be able to push and pull from
> our computers. This is what i did:
> On Linux server: in the folder /home/user1/  I did
>          1. "git init"    (this created a .git folder in the current folder)

Do this instead on the linux-server in the /home/user1/ directory
mkdir myrepo
cd myrepo
git init --bare

>  Now on Windows machine using cygwin, I am tryin to pull this repo by trying
> these, none of which work
> 1. "git clone user1@hostname:/home/user1/.git"      (This doesn't work)

git clone user1@host:myrepo




Reply via email to