Re: [git-users] Re: quick git repo set up
On 22 November 2012 22:35, Konstantin Khomoutov wrote: > On Thu, Nov 22, 2012 at 01:29:15PM -0800, ankit sachan wrote: > >> Thanks a ton for such a quick response! I just tried what you said. It's >> the same, it just says "cloning into myrepo .. " and hangs indefinitely. I >> have verified that i can scp and ssh to the server as well using a >> password. Just can't think of any other problem!! It should not say "cloning into myrepo". Does myrepo already exist on your windows machine ? It should not. Please post the exact commands you are writing and the exact output. Here are my steps and my output from a similiar operation: $ git clone tusk@:myrepo Initialized empty Git repository in /home/tusk/myrepo/.git/ warning: You appear to have cloned an empty repository. --
[git-users] Re: quick git repo set up
Sorry but there is nothing to show, it just hangs infinitely saying :" Cloning into 'myrepo'.." and nothing happens. No files are created in the folder. On Thursday, November 22, 2012 9:16:14 PM UTC, ankit sachan wrote: > > Hi, I am a newbie with git. I have a linux server(centos 6.2) where i > store code and host my website. 2 more guys work with me and we are > learning very fast. 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) > 2. created "HelloGit.c" file and commited it to the repo > > *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) >*Then* > 2. I tried to create a bare repo and pull on this, so "git init --bare" > and "git clone user1@hostname:/home/user1/.git" and still it doesn't work . > > Any help would be great. > > Thanks > > > > > > > > > --
Re: [git-users] Re: quick git repo set up
On Thu, Nov 22, 2012 at 01:29:15PM -0800, ankit sachan wrote: > Thanks a ton for such a quick response! I just tried what you said. It's > the same, it just says "cloning into myrepo .. " and hangs indefinitely. I > have verified that i can scp and ssh to the server as well using a > password. Just can't think of any other problem!! Isn't this because it's actually asked you for the password, but since a call to SSH is scripted, you never see the prompt? You could take the usual approach and use pubkey-based SSH authentication (as used on github and everywhere else). --
[git-users] Re: quick git repo set up
Thanks a ton for such a quick response! I just tried what you said. It's the same, it just says "cloning into myrepo .. " and hangs indefinitely. I have verified that i can scp and ssh to the server as well using a password. Just can't think of any other problem!! On Thursday, November 22, 2012 9:16:14 PM UTC, ankit sachan wrote: > > Hi, I am a newbie with git. I have a linux server(centos 6.2) where i > store code and host my website. 2 more guys work with me and we are > learning very fast. 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) > 2. created "HelloGit.c" file and commited it to the repo > > *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) >*Then* > 2. I tried to create a bare repo and pull on this, so "git init --bare" > and "git clone user1@hostname:/home/user1/.git" and still it doesn't work . > > Any help would be great. > > Thanks > > > > > > > > > --