Hi Conrad,
Thank you very much for your thorough explanation. I submitted my
question
to [email protected] but it appears that that group is
moderated,
my question took days to be posted, and the traffic was low. I needed
gitosis to collaborate with another Rails developer (we are
uncomfortable
with Github confidentiality protection). Your prompt help saved the
day. I
find the responsiveness of this Rails Talk group a compelling reason to
become a Rails developer.
Thanks,
Vincent.
From: [email protected]
[mailto:[email protected]] On Behalf Of Conrad T.
Sent: Wednesday, January 20, 2010 1:38 PM
To: [email protected]
Subject: Re: [Rails] Re: git clone locally
On Wed, Jan 20, 2010 at 11:24 AM, Easebus [email protected] wrote:
Hi Conrad,
I did use the syntax you suggested. Below is the error. Thanks.
~$ git clone /var/gitosis/repositories/vincentProject.git
Initialized empty Git repository in /home/master/vincentProject /.git/
fatal: failed to open
/var/gitosis/repositories/vincentProject.git/objects
I think that’s because the repo belongs to the git user under gitosis.
But
I did add my SSH key to keydir folder and add myself to the members list
for
this project. I don’t know why git still prevents me from cloning.
That’s
why I had to use: git clone git@localhost:vincentProject.git
clonedProject.
This works. The only drawback with this method is that it asks me for
my
passphrase for my SSH key every time.
Vincent, if you’re using SSH, then you should also be able to access the
repository as
follows:
got clone git@localhost/repositories/vincentProject.git
Next, you cannot use a local method of cloning your repository because
you’re using
SSH. Thus, you cannot do
git clone /path/to/repositories/vincentProject
However, you may do this if the current user is ‘git’
git clone /repositories/vincentProject.git
Furthermore, you’ll need to learn more about the tools you’re using
before
you put them into
practice. For example, you should have been fairly comfortable with git
basics before adding
a tool like gitosis to the mix. There are many resources to get up to
speed
with git which include
screencasts. Lastly, I haven’t used gitosis so I will not be able to
help
you here.
Good luck,
-Conrad
Thanks.
Vincent.
Vincent, you might want to learn more about the IDE
From: [email protected]
[mailto:[email protected]] On Behalf Of Conrad T.
Sent: Tuesday, January 19, 2010 8:15 PM
To: [email protected]
Subject: Re: [Rails] Re: git clone locally
On Tue, Jan 19, 2010 at 7:48 PM, Vincent P [email protected] wrote:
Hi Colin,
I get this error if I just do git clone: fatal: failed to open /var/
gitosis/repositories/vincentProject.git/objects
But the following works: git clone git@localhost:vincentProject.git
clonedProject
That works after I add my public key to keydir folder under gitosis
and add my username to the members list for vincentProject in gitosis
config file. This is fine. But is there a better way?
One other problem: whenever I do a git pull, git asks me for my
passphrase for my key. Is there anyway for me to avoid this? I use
another account on a remote computer to do the pull and it works
without asking me for the passphrase of that account.
Thanks.
On Jan 19, 1:25 am, Colin L. [email protected] wrote:
2010/1/19 Easebus [email protected]:
Thanks all. I found out that I needed to use sudo before git in order
for
the -local option to work in my case.
You should not need to use --local or sudo, just
git clone path/to/filename.git
Colin
Vincent, you will need to use the following syntax instead:
git clone path/to/directory_name
# This is the same as git clone -l path/to/directory_name
.
For more information, I would recommend referencing the following web
sit
for git related
information:
http://git-scm.com
Good luck,
-Conrad
–
You received this message because you are subscribed to the Google
Groups
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected]
mailto:[email protected] .
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
–
You received this message because you are subscribed to the Google
Groups
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected]
mailto:[email protected] .
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.